public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10826: [3.3/3.4 regression] Anonymous union regression
@ 2003-05-21  2:38 Janis Johnson
  2003-05-21  3:46 ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Janis Johnson @ 2003-05-21  2:38 UTC (permalink / raw)
  To: gcc-prs, gcc-bugs, gcc-gnats, bartoldeman, nobody, rth

The test case starts getting an error with this patch:

> 2002-06-16  Richard Henderson  <rth@redhat.com>
>
>       * c-common.c (flag_ms_extensions): Move from c++ front end.
>       * c-common.h (flag_ms_extensions): Declare.
>       * c-decl.c (c_decode_option): Add -fms-extensions.
>       (grokfield): Don't accept anonymous structures in ISO C mode;
>       accept only unnamed anonymous structures in GNU C mode; accept
>       Plan 9 extensions in MS mode.
>       * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
>       SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all
callers.
>       (extension): Clear flag_iso.
>       * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
>
--- gcc/gcc/cp/ChangeLog ---
> 2002-06-16  Richard Henderson  <rth@redhat.com>
>
>       * cp-tree.h, decl2.c (flag_ms_extensions): Move to c-common.

It doesn't seem to be a regression after all, but a fix.

Janis

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10826




^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: c/10826: [3.3/3.4 regression] Anonymous union regression
@ 2003-05-21 14:01 bangerth
  2003-05-21 22:59 ` Bart Oldeman
  0 siblings, 1 reply; 5+ messages in thread
From: bangerth @ 2003-05-21 14:01 UTC (permalink / raw)
  To: bartoldeman, gcc-bugs, gcc-prs, nobody

Synopsis: [3.3/3.4 regression] Anonymous union regression

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Wed May 21 13:56:20 2003
State-Changed-Why:
    Not a bug, but previously accepted erroneously. I now also
    see what rth meant: if you write "union type {...}" you
    really _declare_ a nested type. That explains why the
    compiler says that there is no such member. Only if you
    omit the type name, is this the declaration of an anonymous
    union, which not only declares a type, but also a "member
    variable" (in C++ speak).
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10826


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: c/10826: [3.3/3.4 regression] Anonymous union regression
@ 2003-05-16 21:20 bangerth
  0 siblings, 0 replies; 5+ messages in thread
From: bangerth @ 2003-05-16 21:20 UTC (permalink / raw)
  To: bartoldeman, gcc-bugs, gcc-prs, nobody

Old Synopsis: Anonymous union regression between gcc 3.2 and 3.3
New Synopsis: [3.3/3.4 regression] Anonymous union regression

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri May 16 20:39:51 2003
State-Changed-Why:
    Confirmed. It worked up to 3.2, but no longer in 3.3 and 3.4.
    It works again if "union type {..." is replaced with just
    "union { ...".

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10826


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

end of thread, other threads:[~2003-05-21 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-21  2:38 c/10826: [3.3/3.4 regression] Anonymous union regression Janis Johnson
2003-05-21  3:46 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2003-05-21 14:01 bangerth
2003-05-21 22:59 ` Bart Oldeman
2003-05-16 21:20 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).