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


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From bangerth at dealii dot org  2003-10-20 13:12 -------
With gcc 3.3.2, I get this as error messages from your .ii file:

g/x> /home/bangerth/bin/gcc-3.3.2/bin/c++ -c x.ii
../../include/range.hh: In constructor `Range<T>::Range(Range<U>) [with U =
   char, T = int]':
testRange.cc:48:   instantiated from here
../../include/range.hh:580: error: `char Range<char>::lwb' is private
../../include/range.hh:229: error: within this context
../../include/range.hh:581: error: `char Range<char>::upb' is private
../../include/range.hh:229: error: within this context
../../include/range.hh: In constructor `Range<T>::Range(Range<U>) [with U =
   int, T = char]':
testRange.cc:49:   instantiated from here
../../include/range.hh:580: error: `int Range<int>::lwb' is private
../../include/range.hh:229: error: within this context
../../include/range.hh:581: error: `int Range<int>::upb' is private
../../include/range.hh:229: error: within this context

Does this make more sense to you? If not, is this also what you get with
3.3.2, or why is my output so different from yours?


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