https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83000
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2021-12-08 CC| |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Seems fixed in GCC 10. Are you sure, all releases I have reject the code. With the current master: g++ pr83000.C -c pr83000.C:2:14: error: expected constructor, destructor, or type conversion before ‘(’ token 2 | requires (sizeof(T) > 1) | ^ pr83000.C: In function ‘int main()’: pr83000.C:6:9: error: ‘Test’ was not declared in this scope 6 | Test<char> x; | ^~~~ pr83000.C:6:14: error: expected primary-expression before ‘char’ 6 | Test<char> x; | ^~~~