This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/44417] make check-target-libstdc++-v3 fails due to undefined ptrdiff_t
- From: "singler at kit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2010 14:16:58 -0000
- Subject: [Bug libstdc++/44417] make check-target-libstdc++-v3 fails due to undefined ptrdiff_t
- References: <bug-44417-15092@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from singler at kit dot edu 2010-06-04 14:16 -------
I had cleaned the builddir already.
Adding
#include <cstddef>
solves the problem.
The crucial file seems to be
lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include/stddef.h
Only if it is (indirectly) included, ptrdiff_t is defined in the global scope.
Maybe on other systems, ptrdiff_t is also declared somewhere else, so the
problem does not appear.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44417