From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 222FC3851C03; Mon, 29 Jun 2020 18:27:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 222FC3851C03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593455248; bh=2fMFYZr4Ux1oeroWOpbORwV4SRqAwIIWm2dZNWW2gj8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HQEYnoBOkZxHgoWVrSv1lFFJZPaR6/A4XkklC2xkvF9B5ocDAjnSrmZcyY+t3mtED IlQ3Phvw0vMTT//vrinuOeb5mE8KaHHY9ntJwVBGaTu8VQguaOP1lVFlJPh+wDlj0x Z9+9YZ/1k3vXn6Tei6dDj1I3NkNS2gFtcFoVvGMo= From: "bence.kodaj at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95982] ICE with non-type template parameter that is itself the instantiation of a template Date: Mon, 29 Jun 2020 18:27:28 +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: 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_file_loc 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: Mon, 29 Jun 2020 18:27:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95982 Bence Kodaj changed: What |Removed |Added ---------------------------------------------------------------------------- URL|https://wandbox.org/permlin |https://godbolt.org/z/6BpK2 |k/A9ImqBRe5vyZMFWC |9 --- Comment #1 from Bence Kodaj --- Sorry, there's a typo in the code - here's the fixed version. Godbolt URL: https://godbolt.org/z/6BpK29 --------------------------- #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 >::value ); return 0; } ---------------------------=