diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-04-06 11:46:25 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-04-06 11:46:25 -0400 |
commit | e58484a019c57b1085bbbcc1654f1944feddfe73 (patch) | |
tree | 74dad14767627d66ead130887ecab79b4635a465 /gcc/combine.cc | |
parent | 6283d5ad4779d3e5b7b2a93e76de03264a7c7cc6 (diff) | |
download | gcc-e58484a019c57b1085bbbcc1654f1944feddfe73.zip gcc-e58484a019c57b1085bbbcc1654f1944feddfe73.tar.gz gcc-e58484a019c57b1085bbbcc1654f1944feddfe73.tar.bz2 |
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.
Diffstat (limited to 'gcc/combine.cc')
0 files changed, 0 insertions, 0 deletions