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]

Trigraph warnings broken


Compiling XEmacs 21.2 CVS with egcs-20000124, --enable-cpplib:

/xemacs/ws/dev/src/regex.c:533:43: warning: trigraph ??' encountered
/xemacs/ws/dev/src/regex.c:535:67: warning: trigraph ??' encountered

First of all, it's _very_ nice that gcc has started printing column
numbers for warnings messages.  However....

The column number in that message is correct, but the line number is
WRONG - not even close - the correct line number is 2061.

Here's the code:

                    /* `*?' and `+?' and `??' are okay (and mean match
                       minimally), but other sequences (such as `*??' and
                       `+++') are rejected (reserved for future use). */

Furthermore, gcc should NOT warn about trigraphs used inside comments
unless the pathological use of a trigraph would change the end of the
comment, such as in

/* some text *??/
/ some more text? */

Martin

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