Thread View: gnu.g++.bug
1 messages
1 total messages
Started by fritz
Thu, 21 Jan 1993 23:25
Internal compiler error 346.
Author: fritz
Date: Thu, 21 Jan 1993 23:25
Date: Thu, 21 Jan 1993 23:25
34 lines
1264 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads