https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105143

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:e58484a019c57b1085bbbcc1654f1944feddfe73

commit r12-8028-ge58484a019c57b1085bbbcc1654f1944feddfe73
Author: Patrick Palka <ppa...@redhat.com>
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=tf_none, which led to a crash in the first testcase below and a
    bogus error during overload resolution in the second testcase.

            PR c++/105143

    gcc/cp/ChangeLog:

            * pt.cc (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.

Reply via email to