I can't reproduce the error, the code you provided compiles fine with 
both C and C++ compilers. Perhaps the example is incomplete?

On 02/04/2010 01:27 AM, Basabi Bhattacharya wrote:
> Using SunStudio12 on OpenSolaris (build 128a) and get warnings in 
> unnamed struct with -features=extensions
>
> struct xx {
>         int y;
> };
>
> typedef struct y {
>          int z;
> } YY;
>
> warning: unnamed struct member
>  syntax error before or at: typedef
>
> Not sure why I get error.
>
> Thanks for the help.
>
>
> _______________________________________________
> tools-compilers mailing list
> tools-compilers at opensolaris.org
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20100204/5f5732af/attachment.html>

Reply via email to