[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-08-21 Thread rguenth at gcc dot gnu dot org


--- Comment #5 from rguenth at gcc dot gnu dot org  2006-08-21 10:48 ---
*** Bug 28787 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||vlukas at gmx dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-06-04 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-06-04 Thread mmitchel at gcc dot gnu dot org


--- Comment #2 from mmitchel at gcc dot gnu dot org  2006-06-05 02:46 
---
Subject: Bug 27807

Author: mmitchel
Date: Mon Jun  5 02:46:38 2006
New Revision: 114382

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=114382
Log:
PR c++/27819
* decl.c (cp_finish_decl): Process initializers for static data
members with non-dependent initializers, even in templates.
PR c++/27722
* decl.c (maybe_deduce_size_from_array_init): If the declaration
is erroneous, give it an erroneous type.
(layout_var_decl): If the type is erroneous, give up.
(check_initializer): Likewise.
PR c++/27807
* cp-tree.h (TYPE_OBJ_P): New macro.
(TYPE_PTROB_P): Use it.
(TYPE_REF_OBJ_P): Likewise.
* semantics.c (finish_compound_literal): Do not permit compound
literals of non-object types.
PR c++/27806
* typeck.c (original_type): Robustify.
PR c++/27819
* g++.dg/template/static25.C: New test.
PR c++/27722
* g++.dg/init/array21.C: New test.
PR c++/27807
* g++.dg/ext/complit7.C: New test.

PR c++/27806
* g++.dg/parse/ptrmem5.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/ext/complit7.C
trunk/gcc/testsuite/g++.dg/init/array21.C
trunk/gcc/testsuite/g++.dg/parse/ptrmem5.C
trunk/gcc/testsuite/g++.dg/template/static25.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-06-04 Thread mmitchel at gcc dot gnu dot org


--- Comment #3 from mmitchel at gcc dot gnu dot org  2006-06-05 02:52 
---
Subject: Bug 27807

Author: mmitchel
Date: Mon Jun  5 02:52:37 2006
New Revision: 114383

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=114383
Log:
PR c++/27819
* decl.c (cp_finish_decl): Process initializers for static data
members with non-dependent initializers, even in templates.
PR c++/27722
* decl.c (maybe_deduce_size_from_array_init): If the declaration
is erroneous, give it an erroneous type.
(layout_var_decl): If the type is erroneous, give up.
(check_initializer): Likewise.
PR c++/27807
* cp-tree.h (TYPE_OBJ_P): New macro.
(TYPE_PTROB_P): Use it.
(TYPE_REF_OBJ_P): Likewise.
* semantics.c (finish_compound_literal): Do not permit compound
literals of non-object types.
PR c++/27806
* typeck.c (original_type): Robustify.
PR c++/27819
* g++.dg/template/static25.C: New test.
PR c++/27722
* g++.dg/init/array21.C: New test.
PR c++/27807
* g++.dg/ext/complit7.C: New test.

PR c++/27806
* g++.dg/parse/ptrmem5.C: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/complit7.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/array21.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/ptrmem5.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/static25.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/cp-tree.h
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/semantics.c
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-06-04 Thread mmitchel at gcc dot gnu dot org


--- Comment #4 from mmitchel at gcc dot gnu dot org  2006-06-05 02:54 
---
Fixed in 4.1.2, 4.2.0.


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-05-31 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
   |dot org |
 Status|NEW |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-05-30 Thread bangerth at dealii dot org


--- Comment #1 from bangerth at dealii dot org  2006-05-31 02:29 ---
Confirmed


-- 

bangerth at dealii dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-05-31 02:29:33
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807



[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-05-29 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|--- |4.1.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27807