public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3015: Internal compiler error on illegal code
@ 2001-05-31 14:26 gjkaiser
0 siblings, 0 replies; only message in thread
From: gjkaiser @ 2001-05-31 14:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 3015
>Category: c++
>Synopsis: Internal compiler error on illegal code
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu May 31 14:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: gjkaiser@intrinsic.com
>Release: egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>Description:
Internal compiler error when, within a namespace, a class
inheriting from another class incorrectly attempts to
declare a fixed-size array using a static member of the
same class. The code itself is illegal, so the problem can
be worked around by changing the code to be C++ compliant.
>How-To-Repeat:
Compile the following reduced test case:
namespace space {
class c1 {};
class c2 : public c1 {
static const int N;
int mt[N];
};
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-31 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31 14:26 c++/3015: Internal compiler error on illegal code gjkaiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).