https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119316
Bug ID: 119316 Summary: new expression incorrectly required to have constant expression size Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eczbek.void at gmail dot com Target Milestone: --- https://godbolt.org/z/YTK4PYrqE ```cpp template<typename T> void foo(unsigned n) requires(requires { new T[n]; }) {} int main() { foo<int>(5); } ``` ``` <source>: In instantiation of 'void foo(unsigned int) requires requires{new T( foo::n);} [with T = int]': <source>:2:48: error: size of array is not an integral constant-expression 2 | void foo(unsigned n) requires(requires { new T[n]; }) {} | ^ ```