From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42351385BF9E; Wed, 17 Mar 2021 11:51:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42351385BF9E From: "sbergman at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/99446] [11 Regression] ICE in linemap_position_for_loc_and_offset, at libcpp/line-map.c:1005 Date: Wed, 17 Mar 2021 11:51:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sbergman at redhat dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: Wed, 17 Mar 2021 11:51:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99446 Stephan Bergmann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbergman at redhat dot com --- Comment #2 from Stephan Bergmann --- At least with recent GCC master (bc2127767a0076afdbc9075fda29f97f82ef7ec6),= I can consistently reproduce the following: > $ cat dir1/file2 > #pragma GCC diagnostic push > #include_next > #pragma GCC diagnostic pop > $ cat dir2/file1 > #include > $ cat dir2/file2 > $ g++ -Idir1 -Idir2 -fsyntax-only test.cc > test.cc:2: internal compiler error: in linemap_position_for_loc_and_offse= t, at libcpp/line-map.c:1005 > 0x1ca855b linemap_position_for_loc_and_offset(line_maps*, unsigned int, u= nsigned int) > ../../src/libcpp/line-map.c:1005 > 0xa94ef3 cp_lexer_new_main > ../../src/gcc/cp/parser.c:676 > 0xa94ef3 c_parse_file() > ../../src/gcc/cp/parser.c:45237 > 0xbb8ead c_common_parse_file() > ../../src/gcc/c-family/c-opts.c:1218 > Please submit a full bug report, > with preprocessed source if appropriate. > Please include the complete backtrace with any bug report. > See for instructions.=