From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21FAD3839409; Thu, 7 Apr 2022 19:19:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21FAD3839409 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105143] c++20: ICE when trying to emit a [[nodiscard]] warning and non-type template arugument Date: Thu, 07 Apr 2022 19:19:39 +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: diagnostic, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 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 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: Thu, 07 Apr 2022 19:19:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105143 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4e47b450b72f082de6fba7a060c3a751954e6c17 commit r11-9797-g4e47b450b72f082de6fba7a060c3a751954e6c17 Author: Patrick Palka Date: Wed Apr 6 11:46:25 2022 -0400 c++: make -Wctad-maybe-unsupported respect complain [PR105143] We were attempting to issue a -Wctad-maybe-unsupported warning even when complain=3Dtf_none, which led to a crash in the first testcase below an= d a bogus error during overload resolution in the second testcase. PR c++/105143 gcc/cp/ChangeLog: * pt.c (do_class_deduction): Check complain before attempting to issue a -Wctad-maybe-unsupported warning. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/nodiscard1.C: New test. * g++.dg/warn/Wctad-maybe-unsupported4.C: New test. (cherry picked from commit e58484a019c57b1085bbbcc1654f1944feddfe73)=