Re: [C++ PATCH] c++/89070 - bogus [[nodiscard]] warning in SFINAE.

2019-11-13 Thread Jason Merrill
OK. On Tue, Nov 12, 2019 at 11:45 AM Marek Polacek wrote: > 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. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > >

[C++ PATCH] c++/89070 - bogus [[nodiscard]] warning in SFINAE.

2019-11-12 Thread Marek Polacek
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. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2019-11-12 Marek Polacek PR c++/89070 - bogus [[nodiscard]] w