[Bug c++/49973] New: Column numbers count special characters as multiple columns

timothy003 at msn dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 4 10:21:00 GMT 2011


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

           Summary: Column numbers count special characters as multiple
                    columns
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: timothy003@msn.com


int main()
{
    /* 中 */ asdf;
}

g++ -finput-charset=utf8 hello.cpp

hello.cpp: In function ‘int main()’:
hello.cpp:3:12: error: ‘asdf’ was not declared in this scope

The column number should be 10, not 12.



More information about the Gcc-bugs mailing list