https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70922
Bug ID: 70922 Summary: -Wparentheses warning should not complain about if-else from macro expansion Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org Target Milestone: --- As described here: https://sourceware.org/ml/gdb-patches/2016-04/msg00656.html I upgraded my host compiler to GCC 6.1 and started getting some -Werror build failures in gdb due to -Wparentheses, but the offending if-else structure came from a macro expansion where the intended structure was obvious. It's been suggested that the GCC warning is unhelpful there and a regression: https://sourceware.org/ml/gdb-patches/2016-05/msg00003.html Should -Wparentheses not trigger on such if-else structure coming from a macro expansion?