This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]