cvt.c
63.7 KB
-
PR c++/89070 - bogus [[nodiscard]] warning in SFINAE. · 7b521fbd
This is a complaint that we issue a [[nodiscard]] warning even in SFINAE contexts. Here 'complain' is tf_decltype, but not tf_warning so I guess we can fix it as below. * cvt.c (convert_to_void): Guard maybe_warn_nodiscard calls with tf_warning. * g++.dg/cpp1z/nodiscard7.C: New test. From-SVN: r278147
Marek Polacek committed