c++: Fix stdcall attribute in template. [PR95222]
Another case that breaks with my fix for PR90750: we shouldn't move type attributes in TYPENAME context either, as there's no decl for them to move to. gcc/cp/ChangeLog: PR c++/95222 * decl.c (grokdeclarator): Don't shift attributes in TYPENAME context. gcc/testsuite/ChangeLog: PR c++/95222 * g++.dg/ext/tmplattr10.C: New test. (cherry picked from commit 7e7d9fcff56385812764cba63e1ebf6f4c6c0320)
Showing
gcc/testsuite/g++.dg/ext/tmplattr10.C
0 → 100644
Please
register
or
sign in
to comment