https://bugzilla.novell.com/show_bug.cgi?id=444153
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444153#c7
--- Comment #7 from Michael Matz 2008-11-19 07:11:06 MST ---
Actually, I don't see how the current implementation could ever work in
this scheme (indirectly including the pch). Basically reading in the pch file
completely overwrites the line_table, i.e. all location cookies become
invalid. That's normally no problem, because also those are read back in
(e.g. the builtins have such cookie, but they too live in GC memory, hence
are also overwritten).
But the location cookies for the in-between #include directive of course isn't
in the pch file, only in memory. And that one becomes invalid definitely.
Reading http://gcc.gnu.org/ml/gcc/2005-03/msg01318.html (about interaction
of PCH and mapped-locations) it seems as if their mental model was that indeed
the precompiled header must be included from the top-level, i.e. the main
file.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.