public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* anonymous struct
@ 2010-05-03  3:47 wuyin
  2010-05-03 19:37 ` Michael Witten
  2010-05-03 20:19 ` Pedro Pedruzzi
  0 siblings, 2 replies; 4+ messages in thread
From: wuyin @ 2010-05-03  3:47 UTC (permalink / raw)
  To: gcc

struct T{
  int n;
};
struct T1{
  struct T;
} t;
t.n=1;

Please support this grammar.
http://sourceforge.net/projects/coo/

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

* Re: anonymous struct
  2010-05-03  3:47 anonymous struct wuyin
@ 2010-05-03 19:37 ` Michael Witten
  2010-05-03 20:19 ` Pedro Pedruzzi
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Witten @ 2010-05-03 19:37 UTC (permalink / raw)
  To: wuyin; +Cc: gcc

On Sun, May 2, 2010 at 22:47, wuyin <wuyinp@gmail.com> wrote:
> Please support this grammar.
> http://sourceforge.net/projects/coo/

My advice is to use a language with proper abstraction facilities, like C++.

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

* Re: anonymous struct
  2010-05-03  3:47 anonymous struct wuyin
  2010-05-03 19:37 ` Michael Witten
@ 2010-05-03 20:19 ` Pedro Pedruzzi
  1 sibling, 0 replies; 4+ messages in thread
From: Pedro Pedruzzi @ 2010-05-03 20:19 UTC (permalink / raw)
  To: gcc

On 03-05-2010 00:47 wuyin wrote:
> struct T{
>    int n;
> };
> struct T1{
>    struct T;
> } t;
> t.n=1;
>
> Please support this grammar.

I believe it _is_ currently supported with -fms-extensions.

See:

http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html

Regards,
-- 
Pedro Pedruzzi

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

* Re: anonymous struct
@ 2010-05-03 19:20 wuyin
  0 siblings, 0 replies; 4+ messages in thread
From: wuyin @ 2010-05-03 19:20 UTC (permalink / raw)
  To: gcc

I find.
-fms-extentions

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

end of thread, other threads:[~2010-05-03 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03  3:47 anonymous struct wuyin
2010-05-03 19:37 ` Michael Witten
2010-05-03 20:19 ` Pedro Pedruzzi
2010-05-03 19:20 wuyin

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