From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56BD83858D28; Mon, 10 Apr 2023 02:25:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56BD83858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681093518; bh=kLp4AF+STzVzEWuRzQ9f8v4WiXaJvMaTFHjADj8zNko=; h=From:To:Subject:Date:From; b=QpF3psbIhvaeqpJrhLlXbmsxAseiPByXAqP+amv4hbuwKDlV7lfVU7cBeksOcUv4g 4ahVesL1g3dxMcbd7ZTH/CqOwERDXR8gL3OD+Qu2niqetx9XE0ZDT0l3grf7AAfzTD r5cDqOf89EQF90OC9KywDqBaN7pP0W47Oa5+zB/Y= From: "stevenxia990430 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109459] New: static_assert with operator""s causes internal compiler error Date: Mon, 10 Apr 2023 02:25:17 +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.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stevenxia990430 at gmail 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 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=3D109459 Bug ID: 109459 Summary: static_assert with operator""s causes internal compiler error Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stevenxia990430 at gmail dot com Target Milestone: --- The following program reports an internal compiler error: Segmentation fault To quickly reproduce: https://gcc.godbolt.org/z/T6E8Tb7ff ``` #include #include int main() { using namespace std::literals; int x =3D 0; static_assert(std::is_void_v>, "Cannot process pair."s); return 0; } ``` Removing the operator""s removes the internal compiler error.=