OSDN Git Service

PR c++/17524
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Oct 2004 17:33:02 +0000 (17:33 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Oct 2004 17:33:02 +0000 (17:33 +0000)
commitdc9d9310a34d65a48616acd0a60ec889ff923ffb
tree72dce6660c8f0305d6023aaf4f8fd8d3760cacc4
parenta6925cb3cef27000d9e84a5979448378f1861a45
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88820 138bc75d-0d04-0410-961f-82ee72b054a4
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]