From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E3603858C27; Wed, 24 Nov 2021 17:48:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E3603858C27 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/103415] New: [12 Regression] ICE in cpp_interpret_string_1, at libcpp/charset.c:1739 Date: Wed, 24 Nov 2021 17:48:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: 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: bug_id short_desc product version bug_status 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: Wed, 24 Nov 2021 17:48:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103415 Bug ID: 103415 Summary: [12 Regression] ICE in cpp_interpret_string_1, at libcpp/charset.c:1739 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20210808 and 20210822 : $ cat z1.c #define n(x...) =3D #__VA_OPT__(x##1) const char *c n(1, 2); $ gcc-12-20211121 -c z1.c z1.c:1:20: warning: __VA_OPT__ can only appear in the expansion of a C++20 variadic macro 1 | #define n(x...) =3D #__VA_OPT__(x##1) | ^ z1.c:2:1: internal compiler error: in cpp_interpret_string_1, at libcpp/charset.c:1739 2 | const char *c n(1, 2); | ^~~~~ 0x18b9877 cpp_interpret_string_1 ../../libcpp/charset.c:1739 0x18b9aed cpp_interpret_string(cpp_reader*, cpp_string const*, unsigned lon= g, cpp_string*, cpp_ttype) ../../libcpp/charset.c:1819 0x78aad3 c_parser_string_literal(c_parser*, bool, bool) ../../gcc/c/c-parser.c:7410 0x78b528 c_parser_postfix_expression ../../gcc/c/c-parser.c:9023 0x795b12 c_parser_unary_expression ../../gcc/c/c-parser.c:8255 0x796b5f c_parser_cast_expression ../../gcc/c/c-parser.c:8097 0x796e19 c_parser_binary_expression ../../gcc/c/c-parser.c:7900 0x79800b c_parser_conditional_expression ../../gcc/c/c-parser.c:7600 0x7986d1 c_parser_expr_no_commas ../../gcc/c/c-parser.c:7515 0x79eaf9 c_parser_initializer ../../gcc/c/c-parser.c:5212 0x7aef2a c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2282 0x7b70cf c_parser_external_declaration ../../gcc/c/c-parser.c:1780 0x7b79fb c_parser_translation_unit ../../gcc/c/c-parser.c:1653 0x7b79fb c_parse_file() ../../gcc/c/c-parser.c:23280 0x808eb2 c_common_parse_file() ../../gcc/c-family/c-opts.c:1240=