[Bug c/84852] New: [8 Regression] ICE in calculate_line_spans, at diagnostic-show-locus.c:1105
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Mar 13 18:22:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84852
Bug ID: 84852
Summary: [8 Regression] ICE in calculate_line_spans, at
diagnostic-show-locus.c:1105
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20170618 and 20170716 :
$ cat z1.c
#line 7777777777
int foo (void) { return strlen(""); }
$ gcc-8-20180311 -c z1.c
z1.c: In function 'foo':
z1.c:-812156815:25: warning: implicit declaration of function 'strlen'
[-Wimplicit-function-declaration]
z1.c:-812156815:25: warning: incompatible implicit declaration of built-in
function 'strlen'
z1.c:-812156815:25: note: include '<string.h>' or provide a declaration of
'strlen'
z1.c:-812156815:1: internal compiler error: in calculate_line_spans, at
diagnostic-show-locus.c:1105
0x123853b calculate_line_spans
../../gcc/diagnostic-show-locus.c:1105
0x123853b layout
../../gcc/diagnostic-show-locus.c:819
0x1238724 diagnostic_show_locus(diagnostic_context*, rich_location*,
diagnostic_t)
../../gcc/diagnostic-show-locus.c:1970
0x6f8df7 c_diagnostic_finalizer
../../gcc/c-family/c-opts.c:169
0x12352f5 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/diagnostic.c:989
0x1235743 diagnostic_impl
../../gcc/diagnostic.c:1108
0x1236489 inform(rich_location*, char const*, ...)
../../gcc/diagnostic.c:1181
0x666377 implicitly_declare(unsigned int, tree_node*)
../../gcc/c/c-decl.c:3418
0x67a4db build_external_ref(unsigned int, tree_node*, bool, tree_node**)
../../gcc/c/c-typeck.c:2755
0x6980d7 c_parser_postfix_expression
../../gcc/c/c-parser.c:7881
0x6a0fa2 c_parser_unary_expression
../../gcc/c/c-parser.c:7263
0x6a1d57 c_parser_cast_expression
../../gcc/c/c-parser.c:7104
0x6a2023 c_parser_binary_expression
../../gcc/c/c-parser.c:6907
0x6a3065 c_parser_conditional_expression
../../gcc/c/c-parser.c:6645
0x6a35f0 c_parser_expr_no_commas
../../gcc/c/c-parser.c:6562
0x6a3872 c_parser_expression
../../gcc/c/c-parser.c:9292
0x6a4d79 c_parser_expression_conv
../../gcc/c/c-parser.c:9325
0x6b4c77 c_parser_statement_after_labels
../../gcc/c/c-parser.c:5451
0x6b0a4a c_parser_compound_statement_nostart
../../gcc/c/c-parser.c:5078
0x6b1156 c_parser_compound_statement
../../gcc/c/c-parser.c:4912
More information about the Gcc-bugs
mailing list