Re: [PATCH] c++: Disable -Wignored-qualifiers for template args [PR107492]

2022-11-03 Thread Jason Merrill via Gcc-patches
On 11/1/22 13:01, Marek Polacek wrote: It seems wrong to issue a -Wignored-qualifiers warning for code like: static_assert(!is_same_v); because there the qualifier matters. Likewise in template specialization: template struct S { }; template<> struct S { }; template<> struct S { }

[PATCH] c++: Disable -Wignored-qualifiers for template args [PR107492]

2022-11-01 Thread Marek Polacek via Gcc-patches
It seems wrong to issue a -Wignored-qualifiers warning for code like: static_assert(!is_same_v); because there the qualifier matters. Likewise in template specialization: template struct S { }; template<> struct S { }; template<> struct S { }; // OK, not a redefinition I'm of the mind