https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808
Justin Bassett <jbassett271 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbassett271 at gmail dot com --- Comment #11 from Justin Bassett <jbassett271 at gmail dot com> --- An additional use case: to test that header files can compile in isolation, one could compile the header file with -fsyntax-only ( g++ -xc++ -fsyntax-only myheader.hpp ). However, this emits the "#pragma once in main file" warning, which is undesirable, especially because it makes -Werror impossible. This means that a tool for checking header file isolation would have to emit a new file to check header isolation.