re PR c++/17524 (ICE with initializing a variable of type void)
PR c++/17524 * cp-tree.h (check_var_type): New function. * decl.c (check_var_type): New function, split out from ... (grokdeclarator): ... here. * pt.c (tsubst_decl): Use check_var_type. PR c++/17685 * decl.c (grokdeclarator): Disallow declarations of operators as PR c++/17524 * g++.dg/template/static9.C: New test. PR c++/17685 * g++.dg/parse/operator5.C: New test. From-SVN: r88820
Showing
gcc/testsuite/g++.dg/parse/operator5.C
0 → 100644
gcc/testsuite/g++.dg/template/static9.C
0 → 100644
Please
register
or
sign in
to comment