This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2738: ICE on return type specification of a destructor



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]