[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Re: GCC
>I once had to modify a program because PureC (I don't think it was back
>in the TurboC days) complained about something to do with namespaces.
>It might have been along the lines of the example below (a variable with
>the same name as a struct) but, unfortunately, it's been so long that I
>don't really recall more than that there _was_ a problem of some kind...
>
> typedef struct test1 {
> int a;
> } test2;
>
> struct test1 x;
> test2 y;
>
> int test1; /* Should be OK (gcc with -ansi -pedantic) */
> /* int test2; */ /* This should give an error if uncommented */
Compiles fine on my version of PureC.