From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 722A43858C2F; Thu, 25 Aug 2022 13:37:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 722A43858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661434678; bh=pRTOfA28QaW/CPkTQV8RnCWpfsBvrOP6DhWyry7xBX8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JtXKcvHyAfDbHO6+dX6WTt23FIjnYJL74B8ulgbxiX6h0IdHMZVGkdUMA306ueplC HfR+y7cgkhsKaLOtxq39+1u8p2hFhbNDUZsmMqb1lmN4qteXEPa9eJLt6l54V1L7na 9wnah38jQwFzoGLAPEXmNi0Z6Dx761mdTKuT5icE= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106740] Internal compiler error: Segmentation fault Date: Thu, 25 Aug 2022 13:37:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106740 --- Comment #2 from Martin Li=C5=A1ka --- Reduced test-case: $ cat ice.ii template struct EnumClass { friend int toString(EnumClass); }; struct AmhsConvInfoCoFw { enum AftnTypeXMsgTypeEnum {}; typedef EnumClass AftnTypeXMsgType; const int getAftnTypeXMsgTypeAsStr() const; struct MtcuAxgwInfo { AftnTypeXMsgType mAftnTypeXMsgType; }; }; const int AmhsConvInfoCoFw::getAftnTypeXMsgTypeAsStr() const { MtcuAxgwInfo __trans_tmp_1; toString(__trans_tmp_1.mAftnTypeXMsgType); return 0; } int toString(AmhsConvInfoCoFw::AftnTypeXMsgType);=