[Bug preprocessor/49973] Column numbers count special characters as multiple columns
tromey at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 18:01:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973
Tom Tromey <tromey at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu.org
Component|c++ |preprocessor
--- Comment #9 from Tom Tromey <tromey at gcc dot gnu.org> 2011-12-07 17:59:52 UTC ---
(In reply to comment #6)
> The GCS says "column numbers should start from 1 at the beginning of the
> line ... Calculate column numbers assuming that space and all ASCII
> printing characters have equal width, and assuming tab stops every 8
> columns.". This doesn't say how other characters should be counted,
> although for the results of wcswidth seem appropriate.
Note that GCC also handles the tab case incorrectly here.
This shows up if you M-x next-error in Emacs in the case where
gcc emits column numbers and your source code includes tabs.\
Refiling this to preprocessor.
More information about the Gcc-bugs
mailing list