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]
Other format: [Raw text]

[Bug other/31754] Include column number along line in error messages main.cpp:5:38



------- Comment #1 from tromey at gcc dot gnu dot org  2007-10-26 05:35 -------
Note that even with mapped locations this gives the wrong result.
The C++ parser has some column-number bugs.

opsy. g++ -Wall -fsyntax-only z.cc
z.cc: In function ?int main()?:
z.cc:8:61: error: wrong type argument to unary minus

Column 61 is the closing paren around the "+" expression.
Column 46 would be best.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-26 05:35:43
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31754


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