gcc 2.8.1 on sun SunOS 5.5.1 Generic_103640-31 sun4u sparc SUNW,Ultra-Enterprise

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Tue Feb 1 15:20:00 GMT 2000


Sam Steingold <sds@gnu.org> said:
> The appended file produces different output when compiled with gcc and
> when compiled with sun cc:
> -------------------------------------------------------------
> #include <stdio.h>
> #define putcharx(a) ((a==0)?putchar('a'):putchar(a))
> /* #define putcharx(a) (putchar(a)) */
> 
> main(t, _, a)
>         char
>                        *
>                         a;

Illegal main prototype

> {
>         return !
> 
>                 0 < t ?
>                 t < 3 ?
> 
>                 main(-79, -13, a +

Can't call main (is not necesarily a "normal" function)
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616


More information about the Gcc-bugs mailing list