From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7BB0D385F02E; Sun, 1 Aug 2021 08:59:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BB0D385F02E From: "steve_green at qq dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101710] Sometimes constexpr cannot be used as constexpr Date: Sun, 01 Aug 2021 08:59:33 +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: 11.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: steve_green at qq dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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: Sun, 01 Aug 2021 08:59:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101710 steve02081504 changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #8 from steve02081504 --- (In reply to Andrew Pinski from comment #6) > Changing: > if > constexpr(type_info. > has_attribute_helper()&&type_info. > not_has_has_attribute_helper()) >=20 > to: > if constexpr(type_info.template > has_attribute_helper()&&type_info.template > not_has_has_attribute_helper()) >=20 > Fixes many of the errors > Note the use of template. >=20 > Note there are cases where GCC does not realize the template keyword is n= ot > needed but I don't know if it is actually needed in this case or not. I > suspect it is. So I just need to add "template" to these errors? Well, although it doesn't look very beautiful, I think I latched on This is my code's problem, not GCC's ICE, right thank you=