[Bug c/70859] New: Bad column number in type-generic function errors
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 16:00:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70859
Bug ID: 70859
Summary: Bad column number in type-generic function errors
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jsm28 at gcc dot gnu.org
Target Milestone: ---
The errors for calling type-generic floating-point built-in functions with bad
argument types point to the start of the line, not to the argument in question:
int f (void) { return __builtin_isfinite (0); }
int g (void) { return __builtin_isless (0, 0); }
t.c: In function 'f':
t.c:1:1: error: non-floating-point argument in call to function
'__builtin_isfinite'
int f (void) { return __builtin_isfinite (0); }
^~~
t.c: In function 'g':
t.c:2:1: error: non-floating-point arguments in call to function
'__builtin_isless'
int g (void) { return __builtin_isless (0, 0); }
^~~
For C++, they point to the closing parenthesis, which is closer, but still
wrong.
t.c: In function 'int f()':
t.c:1:44: error: non-floating-point argument in call to function
'__builtin_isfinite'
int f (void) { return __builtin_isfinite (0); }
^
t.c: In function 'int g()':
t.c:2:45: error: non-floating-point arguments in call to function
'__builtin_isless'
int g (void) { return __builtin_isless (0, 0); }
^
More information about the Gcc-bugs
mailing list