https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95475
--- Comment #2 from Haoxin Tu <haoxintu at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> The question is where should it be, at the open of the () or the start of
> the identifier __builtin_unreachable ? In C++, it is the open. In C, it is
> the start.
Hi, Andrew,
My question is that GCC treats the identifier "__builtin_unreachable" and
normal identifier differently?
For example
$cat test.cc
int foo_long_identifier(){;}
int main(){
foo_long_identifier();
}
$g++ -w -fsanitize=undefined test.cc ; ./a.out
test.cc:1:5: runtime error: execution reached the end of a value-returning
function without returning a value
I think this time the column number is the start of the identifier
"foo_long_identifier" rather than "()".