[Bug libstdc++/44417] make check-target-libstdc++-v3 fails due to undefined ptrdiff_t
singler at kit dot edu
gcc-bugzilla@gcc.gnu.org
Fri Jun 4 14:17:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list