public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template @ 2005-08-02 2:39 reichelt at gcc dot gnu dot org 2005-08-02 2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-08-02 2:39 UTC (permalink / raw) To: gcc-bugs The following code snippet causes an ICE on the 4.0 branch and mainline: ================================ template<int N> struct A { void foo() throw(int[N]); }; A<0> a; ================================ bug.cc: In instantiation of 'A<0>': bug.cc:6: instantiated from here bug.cc:3: error: creating array with size zero ('0') bug.cc:3: internal compiler error: tree check: expected tree_list, have error_mark in comp_except_specs, at cp/typeck.c:835 Please submit a full bug report, [etc.] -- Summary: [4.0/4.1 Regression] ICE on invalid throw in template Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org @ 2005-08-02 2:52 ` pinskia at gcc dot gnu dot org 2005-08-02 11:11 ` reichelt at gcc dot gnu dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-08-02 2:52 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-02 02:52 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-08-02 02:52:53 date| | Target Milestone|--- |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org 2005-08-02 2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org @ 2005-08-02 11:11 ` reichelt at gcc dot gnu dot org 2005-08-04 2:39 ` reichelt at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-08-02 11:11 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-02 11:11 ------- Similar testcase without arrays of length zero (which is not a bug in every version of GCC): ======================================== template<typename T> struct A { void foo() throw(typename T::X); }; A<void> a; ======================================== -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org 2005-08-02 2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org 2005-08-02 11:11 ` reichelt at gcc dot gnu dot org @ 2005-08-04 2:39 ` reichelt at gcc dot gnu dot org 2005-08-06 22:38 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-08-04 2:39 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-04 02:39 ------- Testing a patch. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-08-04 2:39 ` reichelt at gcc dot gnu dot org @ 2005-08-06 22:38 ` cvs-commit at gcc dot gnu dot org 2005-08-06 22:48 ` reichelt at gcc dot gnu dot org 2005-08-06 22:48 ` cvs-commit at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-08-06 22:38 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-06 22:38 ------- Subject: Bug 23191 CVSROOT: /cvs/gcc Module name: gcc Changes by: reichelt@gcc.gnu.org 2005-08-06 22:38:44 Modified files: gcc/cp : ChangeLog pt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: eh2.C Log message: PR c++/23191 * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node before calling build_exception_variant. * g++.dg/template/eh2.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4843&r2=1.4844 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1020&r2=1.1021 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5888&r2=1.5889 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/eh2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-08-06 22:38 ` cvs-commit at gcc dot gnu dot org @ 2005-08-06 22:48 ` reichelt at gcc dot gnu dot org 2005-08-06 22:48 ` cvs-commit at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-08-06 22:48 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-06 22:48 ------- Fixed on mainline and the 4.0 branch. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/23191] [4.0/4.1 Regression] ICE on invalid throw in template 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org ` (4 preceding siblings ...) 2005-08-06 22:48 ` reichelt at gcc dot gnu dot org @ 2005-08-06 22:48 ` cvs-commit at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-08-06 22:48 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-06 22:48 ------- Subject: Bug 23191 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: reichelt@gcc.gnu.org 2005-08-06 22:48:08 Modified files: gcc/cp : ChangeLog pt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: eh2.C Log message: PR c++/23191 * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node before calling build_exception_variant. * g++.dg/template/eh2.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.71&r2=1.4648.2.72 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.978.2.14&r2=1.978.2.15 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.319&r2=1.5084.2.320 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/eh2.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23191 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-08-06 22:48 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-08-02 2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org 2005-08-02 2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org 2005-08-02 11:11 ` reichelt at gcc dot gnu dot org 2005-08-04 2:39 ` reichelt at gcc dot gnu dot org 2005-08-06 22:38 ` cvs-commit at gcc dot gnu dot org 2005-08-06 22:48 ` reichelt at gcc dot gnu dot org 2005-08-06 22:48 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).