public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor @ 2005-02-02 16:42 reichelt at gcc dot gnu dot org 2005-02-02 16:42 ` [Bug c++/19764] " reichelt at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-02-02 16:42 UTC (permalink / raw) To: gcc-bugs The following invalid code snippet causes an ICE in gcc 3.3.x, and 3.4.[34]: ====================================== struct A; template A<>::~A(); ====================================== The error message on the 3.4 branch is: bug.cc:2: error: `A' is not a template bug.cc:2: error: expected id-expression before '~' token bug.cc:2: error: abstract declarator `A' used as declaration bug.cc:2: internal compiler error: tree check: expected class 'd', have 'x' (error_mark) in do_decl_instantiation, at cp/pt.c:10668 Please submit a full bug report, [etc.] We did not ICE in gcc 3.2.x. -- Summary: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor Product: gcc Version: 4.0.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=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor 2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor reichelt at gcc dot gnu dot org @ 2005-02-02 16:42 ` reichelt at gcc dot gnu dot org 2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-02-02 16:42 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.4.4 Version|4.0.0 |3.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor 2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor reichelt at gcc dot gnu dot org 2005-02-02 16:42 ` [Bug c++/19764] " reichelt at gcc dot gnu dot org @ 2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org 2005-07-23 5:01 ` [Bug c++/19764] [3.4 " pinskia at gcc dot gnu dot org 2005-08-08 18:01 ` bangerth at dealii dot org 3 siblings, 0 replies; 12+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:47 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.4 |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor 2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor reichelt at gcc dot gnu dot org 2005-02-02 16:42 ` [Bug c++/19764] " reichelt at gcc dot gnu dot org 2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org @ 2005-07-23 5:01 ` pinskia at gcc dot gnu dot org 2005-08-08 18:01 ` bangerth at dealii dot org 3 siblings, 0 replies; 12+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-07-23 5:01 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor 2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor reichelt at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-07-23 5:01 ` [Bug c++/19764] [3.4 " pinskia at gcc dot gnu dot org @ 2005-08-08 18:01 ` bangerth at dealii dot org 3 siblings, 0 replies; 12+ messages in thread From: bangerth at dealii dot org @ 2005-08-08 18:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From bangerth at dealii dot org 2005-08-08 18:01 ------- This seems already fixed in 4.0 and mainline: g/x> /home/bangerth/bin/gcc-4.0*/bin/c++ -c x.cc x.cc:2: error: ‘A’ is not a template x.cc:2: error: expected id-expression before ‘~’ token g/x> /home/bangerth/bin/gcc-4.1*/bin/c++ -c x.cc x.cc:2: error: ‘A’ is not a template x.cc:2: error: expected id-expression before ‘~’ token The error message seems reasonable to me. W. -- What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2005-02-26 18:42:45 |2005-08-08 18:01:34 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <bug-19764-1771@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> @ 2005-10-07 3:52 ` gdr at gcc dot gnu dot org 2005-12-06 17:31 ` reichelt at gcc dot gnu dot org ` (5 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: gdr at gcc dot gnu dot org @ 2005-10-07 3:52 UTC (permalink / raw) To: gcc-bugs -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.5 |3.4.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:52 ` gdr at gcc dot gnu dot org @ 2005-12-06 17:31 ` reichelt at gcc dot gnu dot org 2005-12-07 19:40 ` reichelt at gcc dot gnu dot org ` (4 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-06 17:31 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from reichelt at gcc dot gnu dot org 2005-12-06 17:30 ------- Testing a patch. -- reichelt at gcc dot gnu dot org changed: 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=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:52 ` gdr at gcc dot gnu dot org 2005-12-06 17:31 ` reichelt at gcc dot gnu dot org @ 2005-12-07 19:40 ` reichelt at gcc dot gnu dot org 2005-12-07 19:44 ` reichelt at gcc dot gnu dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-07 19:40 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from reichelt at gcc dot gnu dot org 2005-12-07 19:40 ------- Subject: Bug 19764 Author: reichelt Date: Wed Dec 7 19:40:24 2005 New Revision: 108174 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108174 Log: PR c++/19397 PR c++/19762 PR c++/19764 * parser.c (cp_parser_declarator_id): Check for error_mark_node before building a SCOPE_REF. * g++.dg/template/typedef3.C: New test. * g++.dg/template/dtor3.C: Fix error markers. Added: branches/gcc-3_4-branch/gcc/testsuite/g++.dg/template/typedef3.C Modified: branches/gcc-3_4-branch/gcc/cp/ChangeLog branches/gcc-3_4-branch/gcc/cp/parser.c branches/gcc-3_4-branch/gcc/testsuite/ChangeLog branches/gcc-3_4-branch/gcc/testsuite/g++.dg/template/dtor3.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2005-12-07 19:40 ` reichelt at gcc dot gnu dot org @ 2005-12-07 19:44 ` reichelt at gcc dot gnu dot org 2005-12-07 21:16 ` reichelt at gcc dot gnu dot org ` (2 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-07 19:44 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from reichelt at gcc dot gnu dot org 2005-12-07 19:44 ------- Fixed on the 3.4 branch. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://gcc.gnu.org/ml/gcc- | |patches/2005- | |12/msg00446.html Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2005-12-07 19:44 ` reichelt at gcc dot gnu dot org @ 2005-12-07 21:16 ` reichelt at gcc dot gnu dot org 2005-12-07 21:20 ` reichelt at gcc dot gnu dot org 2005-12-07 21:23 ` reichelt at gcc dot gnu dot org 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-07 21:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from reichelt at gcc dot gnu dot org 2005-12-07 21:16 ------- Subject: Bug 19764 Author: reichelt Date: Wed Dec 7 21:16:21 2005 New Revision: 108187 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108187 Log: PR c++/19397 * g++.dg/template/typedef3.C: New test. PR c++/19762 PR c++/19764 * g++.dg/template/dtor3.C: Fix error markers. Added: trunk/gcc/testsuite/g++.dg/template/typedef3.C Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/dtor3.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> ` (4 preceding siblings ...) 2005-12-07 21:16 ` reichelt at gcc dot gnu dot org @ 2005-12-07 21:20 ` reichelt at gcc dot gnu dot org 2005-12-07 21:23 ` reichelt at gcc dot gnu dot org 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-07 21:20 UTC (permalink / raw) To: gcc-bugs ------- Comment #7 from reichelt at gcc dot gnu dot org 2005-12-07 21:20 ------- Subject: Bug 19764 Author: reichelt Date: Wed Dec 7 21:20:25 2005 New Revision: 108188 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108188 Log: PR c++/19397 * g++.dg/template/typedef3.C: New test. PR c++/19762 PR c++/19764 * g++.dg/template/dtor3.C: Fix error markers. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/typedef3.C Modified: branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/dtor3.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> ` (5 preceding siblings ...) 2005-12-07 21:20 ` reichelt at gcc dot gnu dot org @ 2005-12-07 21:23 ` reichelt at gcc dot gnu dot org 6 siblings, 0 replies; 12+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-12-07 21:23 UTC (permalink / raw) To: gcc-bugs ------- Comment #8 from reichelt at gcc dot gnu dot org 2005-12-07 21:23 ------- Subject: Bug 19764 Author: reichelt Date: Wed Dec 7 21:23:14 2005 New Revision: 108189 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108189 Log: PR c++/19397 * g++.dg/template/typedef3.C: New test. PR c++/19762 PR c++/19764 * g++.dg/template/dtor3.C: Fix error markers. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/typedef3.C Modified: branches/gcc-4_0-branch/gcc/testsuite/ChangeLog branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/dtor3.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764 ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-12-07 21:23 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor reichelt at gcc dot gnu dot org 2005-02-02 16:42 ` [Bug c++/19764] " reichelt at gcc dot gnu dot org 2005-05-19 17:47 ` mmitchel at gcc dot gnu dot org 2005-07-23 5:01 ` [Bug c++/19764] [3.4 " pinskia at gcc dot gnu dot org 2005-08-08 18:01 ` bangerth at dealii dot org [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:52 ` gdr at gcc dot gnu dot org 2005-12-06 17:31 ` reichelt at gcc dot gnu dot org 2005-12-07 19:40 ` reichelt at gcc dot gnu dot org 2005-12-07 19:44 ` reichelt at gcc dot gnu dot org 2005-12-07 21:16 ` reichelt at gcc dot gnu dot org 2005-12-07 21:20 ` reichelt at gcc dot gnu dot org 2005-12-07 21:23 ` reichelt 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).