public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5573: typedef in member's derived class causes crash when a class with the same name exists in the base class
@ 2002-02-01 10:56 a.hendriks
0 siblings, 0 replies; 2+ messages in thread
From: a.hendriks @ 2002-02-01 10:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 5573
>Category: c++
>Synopsis: typedef in member's derived class causes crash when a class with the same name exists in the base class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Feb 01 10:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: a.hendriks@b-lex.nl
>Release: trunk
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When class X has a (member) subclass that created a typedef, and this typedef has the same name as a class inside the base class of class X, g++ crashes with an internal error in pop_binding.
This happens in 2.95 and 3.0 as well.
>How-To-Repeat:
struct A
{
class AN { };
};
struct B
{
typedef int AN;
};
struct C : A
{
struct CN : public B { };
class AN { };
};
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/5573: typedef in member's derived class causes crash when a class with the same name exists in the base class
@ 2002-02-18 19:48 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-02-18 19:48 UTC (permalink / raw)
To: a.hendriks, gcc-bugs, gcc-prs, nobody
Synopsis: typedef in member's derived class causes crash when a class with the same name exists in the base class
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Feb 18 19:48:02 2002
State-Changed-Why:
Duplicate of PR 5402:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5402
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5573
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-19 3:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-01 10:56 c++/5573: typedef in member's derived class causes crash when a class with the same name exists in the base class a.hendriks
2002-02-18 19:48 rodrigc
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).