This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12683] New: Bad source locator in error message
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2003 06:54:04 -0000
- Subject: [Bug c++/12683] New: Bad source locator in error message
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
Summary: Bad source locator in error message
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
Actual error is at range.hh:224, which is not mentioned anywhere in the (extended) message. Replace "comp" by "5" (for example) in that line and it compiles clean. The only line# reported in that file (range.hh:483) is a call on a function that calls the constructor containing the actual error, but neither the function nor the constructor are listed in the "instantiated from" chain nor reported as the error location directly.