From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49189388A801; Mon, 18 May 2020 05:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49189388A801 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589780087; bh=zNgk00t9krpuwm6yhj/3tgDexHFzrqxUPRYxmT6x4Oo=; h=From:To:Subject:Date:From; b=f/68wH6KJwpfyO+c+C7RyT8GDFwc60Vp/umF3MAlWtSWGUu4Q19WE3BabdSP0r3JK HzQfQtRPrgnvt/OFGcsyaJdZOLvS1k0n9Z5sR6sf5GbmtroQO5IwDTlY/EoDA4uFoy TfWsIaeEvFVBh6YuNZKUCcVtVKwh0pdrM+DhVThI= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) Date: Mon, 18 May 2020 05:34:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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 keywords 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: Mon, 18 May 2020 05:34:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95183 Bug ID: 95183 Summary: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-11.0.0-alpha20200517 snapshot (g:2b9a271b2d0ba340234a138b7f8289bd7dca2f= c5) ICEs when compiling gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c: % gcc-11.0.0 -c gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:8:8: error: unterminated argument list invoking macro "f" 8 | #if 2 f(/* { dg-error "-:unterminated" "unterminated macro in directive" } */ | ^ gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:8:7: error: missing binary operat= or before token "f" 8 | #if 2 f(/* { dg-error "-:unterminated" "unterminated macro in directive" } */ | ^ gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:12: error: unterminated argument = list invoking macro "f" 12 | f( /* { dg-error "-:unterminated" "unterminated macro" } */ |=20 gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:12:1: internal compiler error: Segmentation fault 12 | f( /* { dg-error "-:unterminated" "unterminated macro" } */ | ^ 0xd9b92f crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/toplev.c:328 0x18578d3 _cpp_lex_direct =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/li= bcpp/lex.c:2733 0x18592e8 _cpp_lex_token =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/li= bcpp/lex.c:2611 0x1860877 cpp_get_token_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/li= bcpp/macro.c:2808 0x8784d0 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c-family/c-lex.c:458 0x7f7a3a c_lex_one_token =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:270 0x7f8ac0 c_parser_peek_2nd_token(c_parser*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:491 0x7f8ac0 c_parser_peek_2nd_token(c_parser*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:484 0x820b9c c_parser_declaration_or_fndef =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:1893 0x82a893 c_parser_external_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:1745 0x82b3a9 c_parser_translation_unit =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:1618 0x82b3a9 c_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c/c-parser.c:21746 0x8830fb c_common_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gc= c/c-family/c-opts.c:1190 It's likely caused by g:2a0225e47868fbfceaecaa5e2de96c1c5a2251ea.=