[Bug c++/80014] New: [6/7 Regression] Caret missing in error message
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 12 12:02:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80014
Bug ID: 80014
Summary: [6/7 Regression] Caret missing in error message
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
Target Milestone: ---
The caret is missing in the error message for testcase
gcc/testsuite/g++.dg/rtti/typeid6.C
since GCC 6.1.0:
gcc-6-branch:
typeid6.C: In function 'void foo()':
typeid6.C:10:3: error: no match for 'operator!' (operand type is 'const
std::type_info')
!typeid(void); // { dg-error "!typeid\\(void\\)|candidate is" }
typeid6.C:10:3: note: candidate: operator!(bool) <built-in>
typeid6.C:10:3: note: no known conversion for argument 1 from 'const
std::type_info' to 'bool'
trunk:
typeid6.C: In function 'void foo()':
typeid6.C:10:3: error: no match for 'operator!' (operand type is 'const
std::type_info')
!typeid(void); // { dg-error "!typeid\\(void\\)|candidate is" }
typeid6.C:10:3: note: candidate: operator!(bool) <built-in>
typeid6.C:10:3: note: no known conversion for argument 1 from 'const
std::type_info' to 'bool'
Note that the location information is at least partially available since the
line and column number in the error message are correct.
More information about the Gcc-bugs
mailing list