re PR c++/17524 (ICE with initializing a variable of type void)
authorMark Mitchell <mark@codesourcery.com>
Sat, 9 Oct 2004 17:33:02 +0000 (17:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 9 Oct 2004 17:33:02 +0000 (17:33 +0000)
commit62e19030ce1bb924f906a4ef4992d87461180eab
tree72dce6660c8f0305d6023aaf4f8fd8d3760cacc4
parent5c76089acfa0d689a4e7a1839c3dbf807c0ebbdf
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/operator5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/static9.C [new file with mode: 0644]