public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3252: a struct member cannot have a name that is also a typedef
@ 2001-06-19  2:16 phd
  0 siblings, 0 replies; 2+ messages in thread
From: phd @ 2001-06-19  2:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3252
>Category:       c++
>Synopsis:       a struct member cannot have a name that is also a typedef
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 19 02:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Peter Hegelund
>Release:        Today's build
>Organization:
>Environment:
CodeSourcery
>Description:
typedef char text[11];
struct foo {
text text;
} FOO;

GCC Output


These are the results of processing your source code with the following command:

g++ [input] 


Exit code: 256

Messages:

/usr/tmp/@20044.7.cc:3: declaration of `char foo::text[11]'
/usr/tmp/@20044.7.cc:1: changes meaning of `text' from `typedef char text[11]'

>How-To-Repeat:

>Fix:
Change first text to e.g. _text. Unfortunately the code comes out of our DB API generator! Code compiles fine with Microsoft C++ 12.00 aka Visual Studio 6.00
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/3252: a struct member cannot have a name that is also a typedef
@ 2001-09-04  9:24 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-09-04  9:24 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, phd

Synopsis: a struct member cannot have a name that is also a typedef

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Sep  4 09:24:54 2001
State-Changed-Why:
    not a bug. see [3.3.6]/1 item 2

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3252&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-04  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-19  2:16 c++/3252: a struct member cannot have a name that is also a typedef phd
2001-09-04  9:24 nathan

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).