Suspected Inconsistency

Thomas Eifert eifert@rz.rwth-aachen.de
Mon Feb 14 13:54:00 GMT 2000


Dear GCC People,

I came across the following behaviour (if You don't consider this
a bug please excuse me):

I have a C-source which I developed with purity of language in mind,
and so I always compiled with
-O2 -Wall -ansi -pedantic
and got no warnings - good so far.

With gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
this changed:
I cases where I use the toupper() od tolower() functions, -O2 and
-pedantic get mutual exclusive:
with -O2, these functions get expanded inline, and I get:
<source file>:<line>: warning: ANSI C forbids braced-groups within
expressions

Could You please comment on this ?

TIA and Best Regards,
Thomas Eifert
-- 
 +------------------------------------------------------------------+
 | Dr. Thomas Eifert <eifert@rz.rwth-aachen.de>                     |
 | RWTH Aachen - University of Technology, Computing Center         |
 |                                                                  |
 | RWTH Aachen, Rechenzentrum             Tel.:  (0241) 80-4890     |
 | D-52056 Aachen                         Fax.:  (0241) 8888-134    |
 | http://www.rz.rwth-aachen.de/eifert                              |
 +------------------------------------------------------------------+


More information about the Gcc-bugs mailing list