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++/12683] Bad source locator in error message


------- 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


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