This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2738: ICE on return type specification of a destructor
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2738: ICE on return type specification of a destructor
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 4 May 2001 15:12:55 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>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 <int dim> class A {
class C {
C();
};
};
template <int dim> void A<dim>::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 <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.