latest cppexp.c cannot bootstrap on sunos4, uses unary plus operator

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun Jul 9 11:36:00 GMT 2000


Zack,

The latest CVS dies on SunOS4 again.  This time its the use of the
ANSI C unary plus operator in cppexp.c:

 > cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I../../egcs-CVS20000709/gcc
 > 	-I../../egcs-CVS20000709/gcc/config
 > 	-I../../egcs-CVS20000709/gcc/../include
 > 	../../egcs-CVS20000709/gcc/cppexp.c
 > "../../egcs-CVS20000709/gcc/cppexp.c", line 845: syntax error at or
 > 		near symbol +

BTW, I've just submitted an extension to -Wtraditional to detect this
case and another traditional gotcha, automatic aggregate
initialization, to help avoid this in the future.

If you would please stop using unary plus, I'd much appreciate it.

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-bugs mailing list