https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98810

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-01-25
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |ice-on-valid-code

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
clang accepts it with -std=c++17, GCC rejects it there with

t.C:2:41: error: non-type template parameters of class type only available with
'-std=c++20' or '-std=gnu++20'

Reply via email to