[Mono-dev] Bug with mcs, gmcs nested preprocessor defines?
Marek Safar
marek.safar at seznam.cz
Sun Dec 17 14:13:50 EST 2006
Hello Marcel,
Yes, it is mcs/gmcs bug. Please, fill a bug report on bugzilla.ximian.com
Thanks,
Marek
> Hi,
>
> i have a little code snippet which does not return
> the expected output with mcs or gmcs.
>
> On Windows, with csc, it outputs correctly
>
> PreBug.cs(6,1): warning CS1030: #warning: `A1'
>
> whereas with mcs/gmcs i get
>
> PreBug.cs(6,1): warning CS1030: #warning: `A1'
> PreBug.cs(13,1): warning CS1030: #warning: `A2->else'
>
> The second line (a nested define) i think is not correct,
>
> thanks
> Marcel
>
> ----------- PreBug.cs -----------
> /*
> mcs -warn:4 -define:A1 PreBug.cs
>
> //Mono C# compiler version 1.1.13.8 and 1.1.18.1
> PreBug.cs(6,1): warning CS1030: #warning: `A1'
> PreBug.cs(13,1): warning CS1030: #warning: `A2->else'
> */
>
> #if A1
> # warning A1
> #elif A2
> # warning A2
> # if B2
> # warning A1->B2
> # define A1B2
> # else
> # warning A2->else
> # endif
> #else
> # warning else
> #endif
> ----------- PreBug.cs -----------
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
More information about the Mono-devel-list
mailing list