Re: C++ PATCH to fix bogus warning with a non-type argument (PR c++/82541)

2018-01-10 Thread Jason Merrill
OK. On Tue, Jan 2, 2018 at 9:51 AM, Marek Polacek wrote: > This PR complains about a bogus -Wduplicated-branches warning with a non-type > template argument. That can be easily fixed with a new sentinel. I also > noticed a missing tf_warning warning check, so I added it for

C++ PATCH to fix bogus warning with a non-type argument (PR c++/82541)

2018-01-02 Thread Marek Polacek
This PR complains about a bogus -Wduplicated-branches warning with a non-type template argument. That can be easily fixed with a new sentinel. I also noticed a missing tf_warning warning check, so I added it for good measure. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2018-01-02