From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DDCD385B523; Fri, 17 Mar 2023 15:13:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DDCD385B523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679066021; bh=Swiy0g2SR4xU+ocGTwo6NSBMWdL96u30LROYN3thuvo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b4pCOi4tA2vVcI5M6j9DYURe8yio454wKY9fdvsdWnuoVw5pTpt/T4Bf21ECyi46B 7mLKc3OLIiFIcBp50V4MwuXAuRu4++lxgWCrtDa6+VMy7owOff4xlK7wnqMRcflDg/ 9jK1AY7ft6lKDI0xqCg2t42skCcRA2WqrZCHc9U0= From: "steve_green at qq dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109169] Feature request: Allow omitted template prompts Date: Fri, 17 Mar 2023 15:13:40 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: steve_green at qq dot com X-Bugzilla-Status: WAITING 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: attachments.created 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=3D109169 --- Comment #6 from steve02081504 --- Created attachment 54696 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54696&action=3Dedit temp.cpp (In reply to Andrew Pinski from comment #4) > You provide a full example of what you want? > Because right now your example your provided does not even compile with m= svc. Strangely enough, when I tried to reproduce this requirement, I found that = the sample code I had written would compile. ```c++ #include template struct A { template static constexpr bool a =3D ::std::is_base_of_v; }; template A a{}; int main() { return a.a; } ``` I had no choice but to attach the files I couldn't get to compile and pass = in the attachment. I didn't understand whether gcc could compile such things or not......=