[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #12 from reichelt at gcc dot gnu dot org 2006-08-03 11:34 --- Subject: Bug 28250 Author: reichelt Date: Thu Aug 3 11:33:49 2006 New Revision: 115900 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115900 Log: PR c++/28257 PR c++/28259 PR c++/28267 * toplev.c (compile_file): Return early on errorcount or sorrycount. * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise. (cgraph_optimize): Likewise. PR c++/28250 * g++.dg/eh/catch4.C: New test. PR c++/28257 * g++.dg/other/qual1.C: New test. PR c++/28259 * g++.dg/inherit/error2.C: New test. PR c++/28267 * g++.dg/other/new1.C: New test. * g++.dg/warn/pr23075.C: Remove obsolete test. * g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker. * g++.old-deja/g++.jason/report.C: Remove dg-warning marker. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/eh/catch4.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/error2.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/new1.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/qual1.C Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/cgraphunit.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/g++.dg/warn/pr23075.C branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.jason/report.C branches/gcc-4_1-branch/gcc/toplev.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #13 from reichelt at gcc dot gnu dot org 2006-08-03 11:36 --- Subject: Bug 28250 Author: reichelt Date: Thu Aug 3 11:35:52 2006 New Revision: 115901 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115901 Log: PR c++/28257 PR c++/28259 PR c++/28267 * toplev.c (compile_file): Return early on errorcount or sorrycount. * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise. (cgraph_optimize): Likewise. PR c++/28250 * g++.dg/eh/catch4.C: New test. PR c++/28257 * g++.dg/other/qual1.C: New test. PR c++/28259 * g++.dg/inherit/error2.C: New test. PR c++/28267 * g++.dg/other/new1.C: New test. * g++.dg/warn/pr23075.C: Remove obsolete test. * g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker. * g++.old-deja/g++.jason/report.C: Remove dg-warning marker. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/eh/catch4.C branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/error2.C branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/new1.C branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/qual1.C Modified: branches/gcc-4_0-branch/gcc/ChangeLog branches/gcc-4_0-branch/gcc/cgraphunit.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog branches/gcc-4_0-branch/gcc/testsuite/g++.dg/warn/pr23075.C branches/gcc-4_0-branch/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C branches/gcc-4_0-branch/gcc/testsuite/g++.old-deja/g++.jason/report.C branches/gcc-4_0-branch/gcc/toplev.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #10 from reichelt at gcc dot gnu dot org 2006-08-01 23:45 --- Subject: Bug 28250 Author: reichelt Date: Tue Aug 1 23:45:11 2006 New Revision: 115866 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115866 Log: PR c++/28250 PR c++/28257 PR c++/28259 PR c++/28267 * toplev.c (compile_file): Return early on errorcount or sorrycount. * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise. (cgraph_optimize): Likewise. PR c++/28250 * g++.dg/eh/catch4.C: New test. PR c++/28257 * g++.dg/other/qual1.C: New test. PR c++/28259 * g++.dg/inherit/error2.C: New test. PR c++/28267 * g++.dg/other/new1.C: New test. * g++.dg/warn/pr23075.C: Remove obsolete test. * g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker. * g++.old-deja/g++.jason/report.C: Remove dg-warning marker. Added: trunk/gcc/testsuite/g++.dg/eh/catch4.C trunk/gcc/testsuite/g++.dg/inherit/error2.C trunk/gcc/testsuite/g++.dg/other/new1.C trunk/gcc/testsuite/g++.dg/other/qual1.C Modified: trunk/gcc/ChangeLog trunk/gcc/cgraphunit.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/pr23075.C trunk/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C trunk/gcc/testsuite/g++.old-deja/g++.jason/report.C trunk/gcc/toplev.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #11 from reichelt at gcc dot gnu dot org 2006-08-01 23:47 --- Fixed on mainline. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #9 from patchapp at dberlin dot org 2006-07-26 11:30 --- Subject: Bug number PR c++/28250 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01108.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #7 from reichelt at gcc dot gnu dot org 2006-07-21 10:00 --- Subject: Bug 28250 Author: reichelt Date: Fri Jul 21 09:59:57 2006 New Revision: 115643 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115643 Log: PR c++/28250 * pt.c (tsubst_expr): Only apply DECL_TEMPLATE_INSTANTIATED to valid decls. Cleanup. * g++.dg/eh/catch3.C: New test. Added: trunk/gcc/testsuite/g++.dg/eh/catch3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #8 from reichelt at gcc dot gnu dot org 2006-07-21 10:05 --- Alas there's some fallout from the fix. The first issue has been fixed (see comment #5 and #7), another problem remains, though (see also comment #6): void foo() { try { throw; } catch () {} } bug.cc: In function 'void foo()': bug.cc:4: error: expected type-specifier before ')' token bug.cc:4: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The sefault happens deep in the middle-end: #0 remove_useless_stmts_1 (tp=0x2af831f0, data=0x7fd8b670) at tree-iterator.h:93 #1 0x00546aa4 in remove_useless_stmts_1 (tp=value optimized out, data=0x7fd8b670) at ../../gcc/gcc/tree-cfg.c:1915 #2 0x00546b55 in remove_useless_stmts_1 (tp=0x2af7bf90, data=0x7fd8b670) at ../../gcc/gcc/tree-cfg.c:1741 #3 0x0054775d in remove_useless_stmts () at ../../gcc/gcc/tree-cfg.c:1949 #4 0x008981ae in execute_one_pass (pass=0xc78700) at ../../gcc/gcc/passes.c:864 #5 0x0089831c in execute_pass_list (pass=0xc78700) at ../../gcc/gcc/passes.c:911 #6 0x0055f359 in tree_lowering_passes (fn=value optimized out) at ../../gcc/gcc/tree-optimize.c:324 #7 0x008e7a78 in cgraph_lower_function (node=0x2af7d790) at ../../gcc/gcc/cgraphunit.c:448 #8 0x008e8697 in cgraph_analyze_function (node=0x2af7d790) at ../../gcc/gcc/cgraphunit.c:919 -- reichelt at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #5 from patchapp at dberlin dot org 2006-07-20 15:55 --- Subject: Bug number PR c++/28250 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00860.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #6 from patchapp at dberlin dot org 2006-07-20 16:20 --- Subject: Bug number PR c++/28250 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00862.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #3 from reichelt at gcc dot gnu dot org 2006-07-17 04:42 --- Subject: Bug 28250 Author: reichelt Date: Mon Jul 17 04:42:24 2006 New Revision: 115516 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115516 Log: PR c++/28250 * name-lookup.c (pushdecl_maybe_friend): Return early on error_mark_node. * except.c (expand_start_catch_block): Use error_mark_node instead of NULL_TREE for invalid decls. * parser.c (cp_parser_exception_declaration): Return error_mark_node on invalid catch parameter. Simplify. * g++.dg/eh/catch1.C: New test. * g++.dg/eh/catch2.C: New test. Added: trunk/gcc/testsuite/g++.dg/eh/catch1.C trunk/gcc/testsuite/g++.dg/eh/catch2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/except.c trunk/gcc/cp/name-lookup.c trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #4 from reichelt at gcc dot gnu dot org 2006-07-17 04:43 --- Fixed on mainline. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #2 from patchapp at dberlin dot org 2006-07-14 20:25 --- Subject: Bug number PR c++/28250 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00646.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
--- Comment #1 from patchapp at dberlin dot org 2006-07-04 17:00 --- Subject: Bug number PR c++/28250 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00112.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
[Bug c++/28250] [4.2 regression] ICE with invalid catch
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250