[Bug c++/113407] [11/12/13/14 Regression] internal_error with const char* as non-type template parameter with index parameter pack in fold expression

2024-01-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113407

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug c++/113407] [11/12/13/14 Regression] internal_error with const char* as non-type template parameter with index parameter pack in fold expression

2024-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113407

Andrew Pinski  changed:

   What|Removed |Added

   Last reconfirmed||2024-01-15
  Known to work||11.1.0
  Known to fail||11.2.0
 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
   Severity|normal  |trivial
Summary|internal_error with const   |[11/12/13/14 Regression]
   |char* as non-type template  |internal_error with const
   |parameter with index|char* as non-type template
   |parameter pack in fold  |parameter with index
   |expression  |parameter pack in fold
   ||expression
   Target Milestone|--- |11.5

--- Comment #1 from Andrew Pinski  ---
Confirmed.

Looks like the code which crashes:
  PACK_EXPANSION_LOCAL_P (result) = PACK_EXPANSION_LOCAL_P (t);
  PACK_EXPANSION_SIZEOF_P (result) = PACK_EXPANSION_SIZEOF_P (t);

was added with  r12-701-ge7a9f085ffd34b0d7bc4b803c182b41 .

Note GCC 12+/11.2.0 will crash too if checking is enabled.