This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24375] Wrong line number in diagnostic
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Jan 2016 18:41:50 +0000
- Subject: [Bug c++/24375] Wrong line number in diagnostic
- Auto-submitted: auto-generated
- References: <bug-24375-4 at http dot gcc dot gnu dot org/bugzilla/>
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;
^~~~~~~~