public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7550: g++ 3.1 does not compile legal struct declaration under special circumstances
@ 2002-08-09 5:56 Jochen_Theis
0 siblings, 0 replies; 3+ messages in thread
From: Jochen_Theis @ 2002-08-09 5:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7550
>Category: c++
>Synopsis: g++ 3.1 does not compile legal struct declaration under special circumstances
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri Aug 09 04:46:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jochen Theis
>Release: 3.1 (MinGW port)
>Organization:
>Environment:
Windows NT, service pack 4
>Description:
The compiler does not accept the following code:
template <class C>
class Array
{};
typedef struct { struct { } Array; } TESTSTRUCT;
It appears to interpret the token "Array" in the last line to refer to the template class declaration above. The problem does not occur when class Array is not declared as a template class or when the inner struct{} is replaced by a simple type.
The problem occurred originally in the file "winnt.h" in the MinGW distribution of GCC 3.1 for some code where a template class Array was also defined before including "winnt.h".
>How-To-Repeat:
Compile the five code lines in the description with g++ 3.1.
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7550: g++ 3.1 does not compile legal struct declaration under special circumstances
@ 2003-01-28 16:59 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-28 16:59 UTC (permalink / raw)
To: Jochen_Theis, gcc-bugs, gcc-prs, nobody
Synopsis: g++ 3.1 does not compile legal struct declaration under special circumstances
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 28 16:59:46 2003
State-Changed-Why:
Works not with new parser.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7550
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7550: g++ 3.1 does not compile legal struct declaration under special circumstances
@ 2002-09-13 16:11 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-13 16:11 UTC (permalink / raw)
To: Jochen_Theis, gcc-bugs, gcc-prs, nobody
Synopsis: g++ 3.1 does not compile legal struct declaration under special circumstances
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 16:11:01 2002
State-Changed-Why:
confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7550
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-28 16:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-09 5:56 c++/7550: g++ 3.1 does not compile legal struct declaration under special circumstances Jochen_Theis
2002-09-13 16:11 nathan
2003-01-28 16:59 bangerth
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).