https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87161
FeRD <ferdnyc at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ferdnyc at gmail dot com --- Comment #7 from FeRD <ferdnyc at gmail dot com> --- (In reply to Simon Marchi from comment #6) > I also encountered this inconsistency when running g++ under ccache. I > can't tell if this is a ccache or a gcc problem. Any thoughts about gcc's argument handling (aka this bug) notwithstanding, the fact that ccache reorders some command-line flags (including -Werror) in ways that affect the compiler's execution is an acknowledged bug[1] in ccache, hopefully slated to be addressed in the next release. [1]: github.com/ccache/ccache/issues/738