From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B89BA386103F; Wed, 25 Nov 2020 17:03:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B89BA386103F From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97991] ICE in c_parser_consume_token, at c/c-parser.c:850 Date: Wed, 25 Nov 2020 17:03:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-invalid-code 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: cf_gcctarget keywords 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, 25 Nov 2020 17:03:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97991 G. Steinmetz changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-pc-linux-gnu Keywords| |ice-on-invalid-code --- Comment #1 from G. Steinmetz --- A special case, loosely related : $ cat z2.c #define foo _Pragma (" ") #pragma redefine_extname foo $ gcc-11-20201122 -c z2.c -Wall z2.c:2:2: internal compiler error: unspellable token PRAGMA_EOL 2 | #pragma redefine_extname foo | ^ 0x6c46ba c_cpp_diagnostic(cpp_reader*, cpp_diagnostic_level, cpp_warning_reason, rich_location*, char const*, __va_list_tag (*) [1]) ../../gcc/c-family/c-common.c:6414 0x1522c92 cpp_diagnostic ../../libcpp/errors.c:75 0x1522e16 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...) ../../libcpp/errors.c:89 0x152c22d cpp_spell_token(cpp_reader*, cpp_token const*, unsigned char*, bo= ol) ../../libcpp/lex.c:3541 0x152dac7 cpp_token_as_text(cpp_reader*, cpp_token const*) ../../libcpp/lex.c:3557 0x6d6022 cb_def_pragma ../../gcc/c-family/c-lex.c:255 0x151f880 do_pragma ../../libcpp/directives.c:1539 0x15224fd destringize_and_run ../../libcpp/directives.c:1885 0x15226cc _cpp_do__Pragma ../../libcpp/directives.c:1963 0x1536eb6 builtin_macro ../../libcpp/macro.c:744 0x15344b2 enter_macro_context ../../libcpp/macro.c:1562 0x153624d cpp_get_token_1 ../../libcpp/macro.c:2925 0x6d757d c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int) ../../gcc/c-family/c-lex.c:470 0x664e4f c_lex_one_token ../../gcc/c/c-parser.c:279 0x668809 c_parser_peek_token(c_parser*) ../../gcc/c/c-parser.c:483 0x668809 pragma_lex(tree_node**, unsigned int*) ../../gcc/c/c-parser.c:12540 0x6e4313 handle_pragma_redefine_extname ../../gcc/c-family/c-pragma.c:499 0x66e6bf c_parser_pragma ../../gcc/c/c-parser.c:12524 0x6909f3 c_parser_external_declaration ../../gcc/c/c-parser.c:1758 0x691569 c_parser_translation_unit ../../gcc/c/c-parser.c:1650=