From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD0663851C03; Mon, 29 Jun 2020 18:18:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD0663851C03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593454735; bh=eNby4NTA1mBZm9NkP94LMiFuNsQx4N1DhChQKkYn/wU=; h=From:To:Subject:Date:From; b=Kg/ljeE/lWUlsYLEhmvV8zpvMfuRLvCYP0WNXohcCqSoK2TLhx51aI2MtqK0qDSL7 wvsyRKcJlUmYDvrqFnG7iPMi4E9FjrC7roeG8K41sU+892aXAr6BVSs6cP4llkjoZ9 tN4TydNdLpUdrSfSzdgxO1eDXIzXW2sRmqlKO4Z0= From: "bence.kodaj at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95982] New: ICE with non-type template parameter that is itself the instantiation of a template Date: Mon, 29 Jun 2020 18:18:55 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bence.kodaj 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 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: Mon, 29 Jun 2020 18:18:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95982 Bug ID: 95982 Summary: ICE with non-type template parameter that is itself the instantiation of a template Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bence.kodaj at gmail dot com Target Milestone: --- The code below causes an ICE saying "unexpected expression =E2=80=98=E2=80=99 of kind template_parm_index". OS: Ubuntu 18.04 g++ version: 10.1.0 Wandbox URL: https://wandbox.org/permlink/A9ImqBRe5vyZMFWC# --------------------------- #include template< typename, template< auto > typename > struct IsImplementationOf : std::false_type {}; template< template< auto > typename Template, auto Arg > struct IsImplementationOf< Template< Arg >, Template > : std::true_type {}; template< typename T > struct X { constexpr X( T ) {} }; template< X > struct Y {}; int main() { static_assert( IsImplementationOf< Y< X(0) >, Y > ); return 0; } ---------------------------=