https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68845
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- This may be due to the duplication of -Warray-bounds and -Warray-bounds=. Thus, enable_warning_as_error updates the state of -Warray-bounds=, but the warning code checks for OPT_Warray_bounds. We have many options like this. Perhaps the Alias attribute should be extended to handle this case and only create one entry in the options structure. Ideally: Warray-bounds Alias(-Warray-bounds=,1) would do this, but this prevents -Wno-array-bounds from working. Perhaps the following works? Warray-bounds Alias(-Warray-bounds=,1,0)