https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124979
Bug ID: 124979
Summary: ICE in invalid_tparm_referent_p with invalid template
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-checking, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Created attachment 64270
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64270&action=edit
testcase
non-reduced testcase produces:
<source>:27:17: internal compiler error: in invalid_tparm_referent_p, at
cp/pt.cc:7453
27 | auto co1 = cw<&t>{};
| ^