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 c++/24375] Wrong line number in diagnostic


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24375

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-01-15 21:05:21         |2016-1-27
                 CC|                            |dmalcolm at gcc dot gnu.org

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Problem still present in trunk for gcc 6 (e.g. r232888), albeit it now with
column numbers and ranges:

foo.cc:8:21: error: redefinition of âconst int foo<int>::uâ
 const int foo<int>::u;
                     ^
foo.cc:4:36: note: âconst int foo<int>::uâ previously defined here
 struct foo<int> { static const int u = 0; static int v; };
                                    ^
foo.cc:12:15: error: redefinition of âint foo<int>::vâ
 int foo<int>::v;
               ^
foo.cc:10:5: note: âint foo<int>::vâ previously declared here
 int foo<int>::v;
     ^~~~~~~~

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