Hi,

On Sun, 29 Mar 2015, Sergey Korshunoff wrote:

> struct A
> {
>     struct B {
>         int f1;
>         int f2;
>     };
> };
> int main()
> {
>     struct A a;
>     a.f1 = 16;
>     a.f2 = 32;
> }
> 
> A tcc compiler must not accept this program because a struct B is only
> a type declaration and not a member declaration. Any tips how to fix
> this?

Careful.  The above example is non-standard C, but must be accepted as a 
microsoft extension.  GCCs option for that is -fms-extensions .  As TCC 
is also used on windows I expect not accepting it to lead to failures 
there.


Ciao,
Michael.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to