https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96268
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:b64551af5159ea30b5941ddd430001b13936822c commit r11-7561-gb64551af5159ea30b5941ddd430001b13936822c Author: Marek Polacek <pola...@redhat.com> Date: Mon Mar 8 15:26:58 2021 -0500 c++: Add test for PR96268. This works since the recent r11-7102, but we didn't have a test for a template-argument context. gcc/testsuite/ChangeLog: PR c++/96268 * g++.dg/cpp2a/nontype-class41.C: New test.