http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56627

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Matt Arsenault from comment #9)
> (In reply to Andrew Pinski from comment #8)
> > *** Bug 58025 has been marked as a duplicate of this bug. ***
> 
> They don't have to be consistent by the standard, but the purpose of
> warnings is not to strictly report deviations from the standard. Many point
> out likely mistakes or inconsistencies in "standard" conforming code (e.g.
> -Wlogical-op). This is an absolutely trivial fix.

Actually this warning makes less sense than -Wlogical-op due to the way struct
and class are defined.  -Wlogical-op makes sense since due to forgetting how ||
and && interact, there is no interaction here, only using struct in one case
and class in another which is valid and known what happens even without looking
up what happens.  The real reason why they added this option is due to another
compiler which implements non-standard behavior for struct and class (not
naming the company here but they also don't care about C99).

Reply via email to