https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87161
--- Comment #8 from Simon Marchi <simon.marchi at polymtl dot ca> --- (In reply to FeRD from comment #7) > (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 The issue on the ccache side is now supposedly fixed.
