https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592
Paco Arjonilla <pacoarjonilla at yahoo dot es> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #3 from Paco Arjonilla <pacoarjonilla at yahoo dot es> --- It should be valid code. https://wg21.link/P0732R2 The reason why other compilers reject it is because they have not implemented it yet. https://en.cppreference.com/w/cpp/compiler_support Class types in non-type template parameters (Around halfway of C++20 language features)