This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
latest cppexp.c cannot bootstrap on sunos4, uses unary plus operator
- To: gcc-bugs at gcc dot gnu dot org
- Subject: latest cppexp.c cannot bootstrap on sunos4, uses unary plus operator
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 9 Jul 2000 14:36:02 -0400 (EDT)
- Cc: zack at wolery dot cumb dot org
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