Hello; GCC does not correctly generate dependencies correctly with g++ -MD when precompiled headers are used. I've attached an example which generates main.d while compiling main.cpp. main.cpp includes include/bink.h. When the include path contains the precompiled bink.h.gch (only), main.d does not contain any dependency on bink.h.gch.
When the compiler includes bink.h, main.d includes the dependency. I get the same behavior with version 3.4.6 and 4.1.2 > gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) -- Summary: GCC does not correctly generate dependencies correctly for precompiled headers Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rswan at signetic dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33473