From mboxrd@z Thu Jan 1 00:00:00 1970 From: wolfgang.bangerth@iwr.uni-heidelberg.de To: gcc-gnats@gcc.gnu.org Subject: c++/2738: ICE on return type specification of a destructor Date: Fri, 04 May 2001 08:16:00 -0000 Message-id: <20010504151255.5237.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00137.html List-Id: >Number: 2738 >Category: c++ >Synopsis: ICE on return type specification of a destructor >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Fri May 04 08:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: sparc-sun-solaris2.7, gcc ss 2001-04-11 and 2.95.2 >Description: The following code is clearly bogus, as it specifies a return type on a destructor. Still an ICE is not a helpful error message ;-) Regards Wolfgang >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>>>> cat a.cc template class A { class C { C(); }; }; template void A::C::C () {}; >>>> ~/Config/gcc-ss-sun/bin/c++ -c a.cc -o /dev/null a.cc:6: Internal error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.