From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C80EA3857C52; Tue, 9 Mar 2021 17:04:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C80EA3857C52 From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/61474] ICE (segfault) in preprocessor Date: Tue, 09 Mar 2021 17:04:21 +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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot org 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: 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: Tue, 09 Mar 2021 17:04:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61474 Matthias Klose changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doko at debian dot org --- Comment #2 from Matthias Klose --- seen with trunk 20210306 $ gcc-11 -E a.c # 0 "a.c" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2 # 1 "a.c" # 1 "b.h" 1 # 1 "c.h" 1 # 1 "b.h" 2 In file included from a.c:1: b.h:1: internal compiler error: Segmentation fault 1 | # 1 "c.h" 1 |=20 0xd041a0 crash_signal ../../src/gcc/toplev.c:327 0x11e616c open_file ../libcpp/../../src/libcpp/files.c:225 0x165a9ba read_file ../libcpp/../../src/libcpp/files.c:770 0x11e62dc _cpp_stack_file ../libcpp/../../src/libcpp/files.c:942 0x1684cd2 do_include_common ../libcpp/../../src/libcpp/directives.c:853 0x120a24f _cpp_handle_directive ../libcpp/../../src/libcpp/directives.c:541 0x1204fa4 _cpp_lex_token ../libcpp/../../src/libcpp/lex.c:2809 0x120927f cpp_get_token_1 ../libcpp/../../src/libcpp/macro.c:2839 0x16841c3 cpp_get_token_with_location(cpp_reader*, unsigned int*) ../libcpp/../../src/libcpp/macro.c:3108 0x16841c3 scan_translation_unit ../../src/gcc/c-family/c-ppoutput.c:320 0x16841c3 preprocess_file(cpp_reader*) ../../src/gcc/c-family/c-ppoutput.c:102 0x167e491 c_common_init() ../../src/gcc/c-family/c-opts.c:1195 0x163fb1b lang_dependent_init ../../src/gcc/toplev.c:1889 0x163fb1b do_compile ../../src/gcc/toplev.c:2186 Please submit a full bug report, with preprocessed source if appropriate.=