This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25633] [3.4/4.0/4.1/4.2 regression] ICE on invalid initializer in constructor
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2006 08:40:26 -0000
- Subject: [Bug c++/25633] [3.4/4.0/4.1/4.2 regression] ICE on invalid initializer in constructor
- References: <bug-25633-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-01-03 08:40 -------
Subject: Bug 25633
Author: mmitchel
Date: Tue Jan 3 08:40:18 2006
New Revision: 109269
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109269
Log:
PR c++/25635
* class.c (add_method): Set TYPE_HAS_CONVERSION for classes with a
conversion operator.
* decl.c (grokdeclarator): Do not set TYPE_HAS_CONVERSION here.
PR c++/25638
* class.c (add_method): Never associate more than one destructor
with a single class.
PR c++/25637
* decl.c (grokdeclarator): Refine check for invalid
declarations/definitions of member functions outside of their own
class.
PR c++/25633
* parser.c (cp_parser_mem_initializer_list): Check result of
cp_parser_mem_initializer against error_mark_node, not NULL_TREE.
(cp_parser_mem_initializer): Return error_mark_node for failure.
PR c++/25634
* parser.c (cp_parser_elaborated_type_specifier): Call
cp_parser_check_template_parameters.
PR c++/25635
* g++.dg/parse/operator6.C: New test.
PR c++/25637
* g++.dg/parse/error29.C: New test.
PR c++/25638
* g++.dg/parse/dtor6.C: New test.
PR c++/25633
* g++.dg/parse/ctor3.C: New test.
PR c++/25634
* g++.dg/template/class3.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/ctor3.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/dtor6.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/error29.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/operator6.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/class3.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/class.c
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25633