From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.7 i686) Description of problem: When I run g++3 of gcc3-c++-3.0-6 first with -c -frepo and then with the .o file generated in the first phase, g++ fails to find /usr/lib/gcc-lib/i386-redhat-linux/3.0.1/include/stddef.h . Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Here is my main.C: #include "myclass.h" main() { myclass<int> x("Hello"); } 2. Here is my myclass.h: #include <iostream> template <class T> class myclass { public: myclass(const char *t); }; template <class T> myclass<T>::myclass(const char *t) { std::cout << t << std::endl; } 3. When I run "g++3 -c -frepo main.C" it goes OK. 4. When I then run "g++3 main.o" it fails. Actual Results: collect: recompiling main.C In file included from /usr/include/g++-v3/bits/std_cstdio.h:38, from /usr/include/g++-v3/cstdio:31, from /usr/include/g++-v3/i386-redhat-linux/bits/c++io.h:35, from /usr/include/g++-v3/bits/fpos.h:39, from /usr/include/g++-v3/bits/std_iosfwd.h:41, from /usr/include/g++-v3/bits/std_ios.h:39, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:31, from myclass.h:1, from main.C:1: /usr/include/g++-v3/bits/std_cstddef.h:38:25: stddef.h: No such file or directory ... ... Expected Results: a.out should have appeared. Additional info:
See http://gcc.gnu.org/ml/gcc/2001-09/msg00032.html for some analysis.
Fixed in gcc3 3.0.1-2.
Closing due to inactivity. Please feel free to reopen this bug or refile this bug against the latest release Fedora Core if you feel this bug is still relevant today. Thank you