[Bug c++/120551] Dynamic char array allocation with string literal in brace initialization fails to use the initialization if size provided is not constexpr

2025-06-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120551

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2025-06-04

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

[Bug c++/120551] Dynamic char array allocation with string literal in brace initialization fails to use the initialization if size provided is not constexpr

2025-06-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120551

--- Comment #1 from Andrew Pinski  ---
Created attachment 61584
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61584&action=edit
Reduced testcase

Note MSVC ICEs on this.

EDG and clang works.