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-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
  0 siblings, 2 replies; 9+ 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] 9+ messages in thread

end of thread, other threads:[~2005-12-07 21:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19764-1771@http.gcc.gnu.org/bugzilla/>
2005-10-07  3:52 ` [Bug c++/19764] [3.4 regression] ICE on explicit instantiation of a non-template destructor 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
2005-02-02 16:42 [Bug c++/19764] New: [3.3/3.4 " reichelt 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

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).