From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 063173858D20; Thu, 3 Nov 2022 11:15:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 063173858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667474149; bh=T3uJ+cvnOJC9s5wDXaPlGf9SXQqIIrTu355lqupaSvU=; h=From:To:Subject:Date:From; b=dJTqqKuqeK799re7+RplA87q9gxubUyVdEXipd+iG9ye810kl0VoVzSqJFw6xaHTb jWpquUNU6EBf5/xKT/pJQsBYO/+u1Y626x+trSBj4CbjULv54ty1GGY0gZSqwe0mQF b6mhSis93X51zSPu1CUNohlUJDa6XjGRMbkSY114= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107516] New: [13 Regression] ICE with -fwide-exec-charset=latin1 Date: Thu, 03 Nov 2022 11:15:46 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107516 Bug ID: 107516 Summary: [13 Regression] ICE with -fwide-exec-charset=3Dlatin1 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Compiling the attached code with -std=3Dgnu++20 -fwide-exec-charset=3Dlatin= 1 gives an ICE with trunk. GCC 12 doesn't ICE, but maybe it's a --enable-checking=3Drelease thing (no ICE even with -fchecking=3D3 though). tmp$ ~/gcc/12.1/bin/g++ -std=3Dc++20 suffix.cc -fwide-exec-charset=3Dlatin= 1=20 tmp$ ~/gcc/13/bin/g++ -std=3Dc++20 suffix.cc -fwide-exec-charset=3Dlatin1 -freport-bug during RTL pass: expand suffix.cc: In function =E2=80=98auto __units_suffix() [with _Period =3D std= ::ratio<1, 1000>; _CharT =3D wchar_t]=E2=80=99: suffix.cc:97:22: internal compiler error: in get_constant_size, at varasm.cc:3418 97 | return L##suffix; \ | ^ suffix.cc:106:11: note: in expansion of macro =E2=80=98_GLIBCXX_UNITS_SUFFI= X=E2=80=99 106 | _GLIBCXX_UNITS_SUFFIX(milli, "ms") | ^~~~~~~~~~~~~~~~~~~~~ 0x8a6410 get_constant_size /home/jwakely/src/gcc/gcc/gcc/varasm.cc:3418 0x1519a88 assemble_constant_contents /home/jwakely/src/gcc/gcc/gcc/varasm.cc:3615 0x151af15 output_constant_def_contents /home/jwakely/src/gcc/gcc/gcc/varasm.cc:3666 0x151b264 maybe_output_constant_def_contents /home/jwakely/src/gcc/gcc/gcc/varasm.cc:3602 0x151b264 output_constant_def(tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/varasm.cc:3568 0xe23b2e expand_expr_constant /home/jwakely/src/gcc/gcc/gcc/expr.cc:8592 0xe23b2e expand_expr_addr_expr_1 /home/jwakely/src/gcc/gcc/gcc/expr.cc:8619 0xe24169 expand_expr_addr_expr /home/jwakely/src/gcc/gcc/gcc/expr.cc:8812 0xe19464 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/jwakely/src/gcc/gcc/gcc/expr.cc:12096 0xe26825 store_expr(tree_node*, rtx_def*, int, bool, bool) /home/jwakely/src/gcc/gcc/gcc/expr.cc:6330 0xe28090 expand_assignment(tree_node*, tree_node*, bool) /home/jwakely/src/gcc/gcc/gcc/expr.cc:6051 0xcf589c expand_gimple_stmt_1 /home/jwakely/src/gcc/gcc/gcc/cfgexpand.cc:3946 0xcf589c expand_gimple_stmt /home/jwakely/src/gcc/gcc/gcc/cfgexpand.cc:4044 0xcfc0ce expand_gimple_basic_block /home/jwakely/src/gcc/gcc/gcc/cfgexpand.cc:6096 0xcfdbe7 execute /home/jwakely/src/gcc/gcc/gcc/cfgexpand.cc:6822 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/ccsLQGSo.out file, please attach this = to your bugreport.=