[Bug pch/94843] if i use pch and specify '-include' twice compilation fails

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 29 07:20:26 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94843

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |pch
           Keywords|                            |diagnostic

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
The constraints for the use of PCH are quite strict and a second include
of the same PCH is definitely not supported.

The failure mode isn't very helpful though.


More information about the Gcc-bugs mailing list