This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12683] Bad source locator in error message
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2003 00:51:30 -0000
- Subject: [Bug c++/12683] Bad source locator in error message
- References: <20031020065351.12683.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dhazeghi at yahoo dot com 2003-12-11 00:51 -------
I can't reproduce this at all. I get:
../../include/range.hh: In constructor `Range<T>::Range(Range<U>) [with U =
char, T = int]':
testRange.cc:56: instantiated from here
../../include/range.hh:577: error: `char Range<char>::lwb' is private
../../include/range.hh:225: error: within this context
../../include/range.hh:578: error: `char Range<char>::upb' is private
../../include/range.hh:225: error: within this context
../../include/range.hh: In constructor `Range<T>::Range(Range<U>) [with U =
int, T = char]':
testRange.cc:57: instantiated from here
../../include/range.hh:577: error: `int Range<int>::lwb' is private
../../include/range.hh:225: error: within this context
../../include/range.hh:578: error: `int Range<int>::upb' is private
../../include/range.hh:225: error: within this context
with gcc 3.3 branch. I think you have a b0rked libstdc++ installation (I had a similar problem a few
months back). Would you mind checking whether reinstalling (in a clean prefix) fixes the error?
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12683