From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63B44394741D; Thu, 8 Apr 2021 13:03:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63B44394741D From: "rguenth at gcc dot gnu.org" 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: Thu, 08 Apr 2021 13:03:24 +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: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: attachments.created 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: Thu, 08 Apr 2021 13:03:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99446 --- Comment #5 from Richard Biener --- Created attachment 50529 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50529&action=3Dedit testcase testcase for convenience. > tar xf testcase.tar > g++ -Idir1 -Idir2 -fsyntax-only test.cc test.cc:2: internal compiler error: in linemap_position_for_loc_and_offset,= at libcpp/line-map.c:1005 0x1cd2ebb linemap_position_for_loc_and_offset(line_maps*, unsigned int, unsigned int) /home/rguenther/src/trunk/libcpp/line-map.c:1005 0xaa4533 cp_lexer_new_main /home/rguenther/src/trunk/gcc/cp/parser.c:678 0xaa4533 c_parse_file() /home/rguenther/src/trunk/gcc/cp/parser.c:45264=