c++: Add testcase for already fixed PR [PR16617]
authorPatrick Palka <ppalka@redhat.com>
Thu, 22 Apr 2021 17:32:40 +0000 (13:32 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 22 Apr 2021 17:32:40 +0000 (13:32 -0400)
commit330cc29c06306ebf7bd3b2d37704cc69944923ff
tree65c2252b6983ae4c165a5f0b99c1e80fde8119d0
parentac456fd981db6b0c2f7ee1ab0d17d36087a74dc2
c++: Add testcase for already fixed PR [PR16617]

We correctly diagnose the invalid access since r11-1350.

gcc/testsuite/ChangeLog:

PR c++/16617
* g++.dg/template/access36.C: New test.
gcc/testsuite/g++.dg/template/access36.C [new file with mode: 0644]