From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 299983857C6B; Fri, 4 Sep 2020 11:37:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 299983857C6B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599219462; bh=RvDiowB6jP58/Jn9gaw7nBzzg9szl4xDshoRwZPpaRA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uQV6CupNNDec12xDv+FuTQ/VQFGipNYu18azvE0s2Hu2LtuhD6m3abqWgDVWb2MDk rQdNmLLpFusqVzOIuML2agNqtl0CkCZvSnlly1zDaRxnAXsYcgEH9ZtZ1uAfGhRm2v WHgCgyPns9wXZ7ihn473EvphwLvMTpfmmXRPRJzI= From: "jan.smets at nokia dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/96935] ICE in subspan, at input.h:69 Date: Fri, 04 Sep 2020 11:37:42 +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: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.smets at nokia 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: 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: Fri, 04 Sep 2020 11:37:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96935 --- Comment #1 from Jan Smets --- Proper backtrace (10.2) x.cpp: In function =E2=80=98void a()=E2=80=99: x.cpp:3: internal compiler error: in subspan, at input.h:69 3 | #define DB_PRINTF(str, fmt, args...) db_printf(indent_len, 50, fmt, str, ##args) | x.cpp:7: note: in expansion of macro =E2=80=98DB_PRINTF=E2=80=99 7 | DB_PRINTF("", "%llu", 0); | 0x168ee7b char_span::subspan(int, int) const /jasmets/git/tools/gcc/gcc/input.h:69 0x168ee7b get_substring_ranges_for_loc /jasmets/git/tools/gcc/gcc/input.c:1467 0x168ee7b get_location_within_string(cpp_reader*, string_concat_db*, unsign= ed int, cpp_ttype, int, int, int, unsigned int*) /jasmets/git/tools/gcc/gcc/input.c:1553 0x8fad84 c_get_substring_location(substring_loc const&, unsigned int*) /jasmets/git/tools/gcc/gcc/c-family/c-common.c:903 0x92e3ad get_corrected_substring /jasmets/git/tools/gcc/gcc/c-family/c-format.c:4505 0x92e3ad format_type_warning /jasmets/git/tools/gcc/gcc/c-family/c-format.c:4721 0x93142b check_format_types /jasmets/git/tools/gcc/gcc/c-family/c-format.c:4266 0x93142b argument_parser::check_argument_type(format_char_info const*, length_modifier const&, tree_node*&, char const*&, bool, unsigned long&, tree_node*&, int, char const*, char const*, unsigned int, char) /jasmets/git/tools/gcc/gcc/c-family/c-format.c:2859 0x9332e0 check_format_info_main /jasmets/git/tools/gcc/gcc/c-family/c-format.c:3998 0x9332e0 check_format_arg /jasmets/git/tools/gcc/gcc/c-family/c-format.c:1821 0x92f3a2 check_format_info /jasmets/git/tools/gcc/gcc/c-family/c-format.c:1543 0x92f3a2 check_function_format(tree_node const*, tree_node*, int, tree_node= **, vec*) /jasmets/git/tools/gcc/gcc/c-family/c-format.c:1197 0x922f09 check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec*) /jasmets/git/tools/gcc/gcc/c-family/c-common.c:5730 0x77d86f build_over_call /jasmets/git/tools/gcc/gcc/cp/call.c:8901 0x77f2ea build_new_function_call(tree_node*, vec**, int) /jasmets/git/tools/gcc/gcc/cp/call.c:4613 0x8baac6 finish_call_expr(tree_node*, vec**, b= ool, bool, int) /jasmets/git/tools/gcc/gcc/cp/semantics.c:2672 0x864abf cp_parser_postfix_expression /jasmets/git/tools/gcc/gcc/cp/parser.c:7468 0x84d261 cp_parser_unary_expression /jasmets/git/tools/gcc/gcc/cp/parser.c:8563 0x846d11 cp_parser_cast_expression /jasmets/git/tools/gcc/gcc/cp/parser.c:9459 0x8473e1 cp_parser_binary_expression /jasmets/git/tools/gcc/gcc/cp/parser.c:9562=