From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5A88D3844046; Tue, 15 Dec 2020 17:20:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A88D3844046 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/98294] New: [9/10/11 Regression] ICE in calculate_line_spans, at diagnostic-show-locus.c:1296 Date: Tue, 15 Dec 2020 17:20:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 17:20:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98294 Bug ID: 98294 Summary: [9/10/11 Regression] ICE in calculate_line_spans, at diagnostic-show-locus.c:1296 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Old stuff, affects versions down to r6 : $ cat z1.c void f () { #line 9223372036854775807 g () + 1; } $ gcc-11-20201213 -c z1.c -Wall z1.c: In function 'f': z1.c:3:9: warning: line number out of range 3 | #line 9223372036854775807 | ^~~~~~~~~~~~~~~~~~~ z1.c:-1:3: warning: implicit declaration of function 'g' [-Wimplicit-function-declaration] z1.c: warning: value computed is not used [-Wunused-value] z1.c: internal compiler error: in calculate_line_spans, at diagnostic-show-locus.c:1296 0x1532394 calculate_line_spans ../../gcc/diagnostic-show-locus.c:1296 0x1532394 layout ../../gcc/diagnostic-show-locus.c:1003 0x1532572 diagnostic_show_locus(diagnostic_context*, rich_location*, diagnostic_t) ../../gcc/diagnostic-show-locus.c:2601 0x6e2435 c_diagnostic_finalizer ../../gcc/c-family/c-opts.c:174 0x152d744 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info= *) ../../gcc/diagnostic.c:1223 0x152de6e diagnostic_impl ../../gcc/diagnostic.c:1366 0x152e392 warning_at(unsigned int, int, char const*, ...) ../../gcc/diagnostic.c:1503 0x64ea89 c_process_expr_stmt(unsigned int, tree_node*) ../../gcc/c/c-typeck.c:11213 0x64eb8d c_finish_expr_stmt(unsigned int, tree_node*) ../../gcc/c/c-typeck.c:11243 0x689d18 c_parser_statement_after_labels ../../gcc/c/c-parser.c:6249 0x68bd0a c_parser_compound_statement_nostart ../../gcc/c/c-parser.c:5788 0x68c583 c_parser_compound_statement ../../gcc/c/c-parser.c:5597 0x68de38 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2539 0x694ca7 c_parser_external_declaration ../../gcc/c/c-parser.c:1777 0x6957c9 c_parser_translation_unit ../../gcc/c/c-parser.c:1650 0x6957c9 c_parse_file() ../../gcc/c/c-parser.c:21929 0x6e5532 c_common_parse_file() ../../gcc/c-family/c-opts.c:1211=