🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1397

Internal compiler error 346.

#1397
From: fritz
Date: Thu, 21 Jan 1993 23:25
34 lines
1264 bytes
This is to report a bug with destructors of nested classes.

We run gcc on two platforms:
  Reading specs from /usr/local/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
  gcc version 2.3.3
  Reading specs from /usr/local/gnu/lib/gcc-lib/mips-dec-ultrix4.2/2.3.3/specs
  gcc version 2.3.3

Here's the problem:

  g++ doesn't like destructors of nested classes defined outside the
  class definition.  Code below gives:

	% g++ bugnest.cc
	bugnest.cc:8: Internal compiler error 346.
	bugnest.cc:8: Please report this to `bug-g++@prep.ai.mit.edu'.

  No problem if the destructor is declared as an inline inside the class
  definition.

Here's the code:

	class S {
	  struct R {
	    R() {}
	    ~R();
	  };
	};

	S :: R :: ~R() {}

Thanks, 
	- Fritz
	  fritz@mtl.mit.edu
Technical Details
Message-ID: <9301210625.AA22817@wayne>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!mtl.mit.edu!fritz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!mtl.mit.edu!fritz
From: fritz@mtl.mit.edu
Newsgroups: gnu.g++.bug
Subject: Internal compiler error 346.
Date: 21 Jan 1993 18:25:47 -0500
Organization: MIT Microsystems Technology Laboratories
Lines: 37
Sender: daemon@cis.ohio-state.edu
Approved: bug-g++@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9301210625.AA22817@wayne>
Reply-To: fritz@mtl.mit.edu