public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3816: namespace and anonymous struct identifier conflict
@ 2003-01-03 12:50 neroden
0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-03 12:50 UTC (permalink / raw)
To: fonseca, gcc-bugs, gcc-prs, gdr
Synopsis: namespace and anonymous struct identifier conflict
State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Fri Jan 3 04:49:59 2003
State-Changed-Why:
Fixed in 3.4. Testcase in g++.dg/parse/namespace3.C
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3816
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/3816: namespace and anonymous struct identifier conflict
@ 2001-08-13 6:49 gdr
0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2001-08-13 6:49 UTC (permalink / raw)
To: fonseca, gcc-bugs, gcc-prs, gdr, nobody
Synopsis: namespace and anonymous struct identifier conflict
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Mon Aug 13 06:49:45 2001
Responsible-Changed-Why:
Boo!
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Mon Aug 13 06:49:45 2001
State-Changed-Why:
Confirmed as a parser bug. Hopefully, the new parser get it
right.
-- Gaby
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3816&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/3816: namespace and anonymous struct identifier conflict
@ 2001-07-25 9:46 fonseca
0 siblings, 0 replies; 3+ messages in thread
From: fonseca @ 2001-07-25 9:46 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
>Number: 3816
>Category: c++
>Synopsis: namespace and anonymous struct identifier conflict
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Jul 25 09:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: René Fonseca
>Release: gcc-3.0 and gcc-2.95-3 and more
>Organization:
>Environment:
GNU/Linux (RedHat 7.1), Windows 2000 (Cygwin), and Solaris 8.
>Description:
GCC fails to compile a valid typedef of an anonymous struct when the name of the typedef is identical to a namespace in an outer scope.
See the code below to reproduce the problem. The line resulting in the error has been marked with "// conflict with A namespace!!!".
>How-To-Repeat:
Here is some code that illustrates the problem:
namespace A {};
namespace OtherNamespace {
typedef struct {
int member;
} A; // conflict with A namespace!!!
}; // end of namespace
int main() {
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-03 12:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03 12:50 c++/3816: namespace and anonymous struct identifier conflict neroden
-- strict thread matches above, loose matches on Subject: below --
2001-08-13 6:49 gdr
2001-07-25 9:46 fonseca
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).