[Bug c/89410] [7/8/9 Regression] ICE in calculate_line_spans, at diagnostic-show-locus.c:1237 after #line
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 20 15:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89410
--- Comment #6 from Jonny Grant <jg at jguk dot org> ---
Could this show the offending number in the "line number out of range" message?
And even the origin of the LINE1 macro too?
Actual:
#1 with x86-64 gcc (trunk)
<source>: In function 'main':
<source>:4:7: warning: line number out of range
4 | #line LINE1
| ^~~~~
Compiler returned: 0
Expected eg:
#1 with x86-64 gcc (trunk)
<source>: In function 'main':
<source>:4:7: warning: line number 112147483647 out of range
4 | #line LINE1
| ^~~~~
LINE1 was defined in header.h:10
Compiler returned: 0
#define LINE1 112147483647
int main(void)
{
#line LINE1
}
More information about the Gcc-bugs
mailing list