https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16617
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:330cc29c06306ebf7bd3b2d37704cc69944923ff commit r12-69-g330cc29c06306ebf7bd3b2d37704cc69944923ff Author: Patrick Palka <ppa...@redhat.com> Date: Thu Apr 22 13:32:40 2021 -0400 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.