Hi Tom.  Hi folks.

Imagine:

enum e {
  E5 = INTMAX + 1,
              ^ column 15.
};

This addition will trigger an overflow warning in the C FE.  However, the
location of the '+' will not be column 15 as expected, but the
pre-processed column number (19):

  E5 = 2147483647 + 1,
                  ^ column 19

I'm not very preprocessor savvy, but is there some type of annotation we
could have the CPP produce that can be picked up by parsers so we know
which column we're talking about?  Or is there any other obvious
solution?

Pre-processed code is common enough that it would be annoying to have
GCC consistently print out incorrect column numbers for code containing
it.

Thoughts?

Aldy

Reply via email to