OSDN Git Service

PR c++/19991
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Feb 2005 05:30:48 +0000 (05:30 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Feb 2005 05:30:48 +0000 (05:30 +0000)
commit4cbba981b3d1de4043ae5570ed552382a24a939f
treeb003a007ec3edf4d8323134ca4e5d3a88c20f95d
parentb1456e51715b5bfdacb320c844f77980f3af9195
PR c++/19991
* init.c (integral_constant_value): Iterate if the value of a decl
is itself a constant.

PR c++/20152
* parser.c (cp_parser_class_head): Check for redefintions here.
* semantics.c (begin_class_definition): Not here.

PR c++/20153
* decl2.c (build_anon_union_vars): Add type parameter.
(finish_anon_union): Pass it.

PR c++/20148
* error.c (dump_expr): Do not print the body of a BIND_EXPR.
Handle STATEMENT_LIST.

PR c++/19991
* g++.dg/parse/constant7.C: New test.

PR c++/20152
* g++.dg/parse/error27.C: New test.
* g++.dg/template/qualttp15.C: Adjust error markers.
* g++.old-deja/g++.other/struct1.C: Likewise.

PR c++/20153
* g++.dg/template/error17.C: New test.

PR c++/20148
* g++.dg/parser/error26.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95438 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/constant7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/error26.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/error27.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/qualttp15.C
gcc/testsuite/g++.old-deja/g++.other/struct1.C