https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53075
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Kamlesh Kumar from comment #4) > This patch resolves this. No, it doesn't. As the documentation says: -pedantic-errors is not equivalent to @option{-Werror=pedantic}, since there are errors enabled by this option and not enabled by the latter and vice versa. According to the discussion in the email threads above, it is not possible to make them equivalent, one would need to create a new options for everything that is in the disjoint set of -pedantic-errors and -Werror=pedantic (but there may be some bugs worth fixing there to reduce this set). In any case, patches are sent to gcc-patches: https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps