re PR c++/15227 (Trouble with invalid function definition)
authorMark Mitchell <mark@codesourcery.com>
Thu, 10 Jun 2004 14:26:23 +0000 (14:26 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 10 Jun 2004 14:26:23 +0000 (14:26 +0000)
commit109e00403a6044810028032054543fc8dcfeed3a
treeb0a15b965ae2b596d373e44dc59125e68f178fe4
parent9655d83b750bc6de0074b0501044d4bcb28679d9
re PR c++/15227 (Trouble with invalid function definition)

PR c++/15227
* parser.c (cp_parser_direct_declarator): Robustify.

PR c++/15877
* pt.c (tsubst_copy): Use decl_constant_value on enumeration
constants in non-dependent contexts.

PR c++/14211
PR c++/15076
* typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when
necessary.

PR c++/14211
* g++.dg/conversion/const1.C: New test.

PR c++/15076
* g++.dg/conversion/reinterpret1.C: New test.

PR c++/15877
* g++.dg/template/enum2.C: New test.

PR c++/15227
* g++.dg/template/error13.C: New test.

From-SVN: r82917
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/conversion/const1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/conversion/reinterpret1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/enum2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error13.C [new file with mode: 0644]