[Bug c++/36530] ptrdiff_t undefined if is included after and

2008-06-17 Thread faridz at apache dot org
--- Comment #2 from faridz at apache dot org 2008-06-17 15:03 --- You're right, the problem in Ubuntu's /usr/include/wctype.h header file: --- ... /* Get wint_t from . */ #define __need_wint_t #include ... --- Here after that lines should be "#unde

[Bug libstdc++/36530] New: ptrdiff_t undefined if is included after and

2008-06-13 Thread faridz at apache dot org
xtern int iswlower_l (wint_t __wc, __locale_t __locale) throw (); extern int iswprint_l (wint_t __wc, __locale_t __locale) throw (); extern int iswpunct_l (wint_t __wc, __locale_t __locale) throw (); extern int iswspace_l (wint_t __wc, __locale_t __locale) throw (); extern int iswupper_l (wint_t __wc, __locale_t __locale) throw (); extern int iswxdigit_l (wint_t __wc, __locale_t __locale) throw (); extern int iswblank_l (wint_t __wc, __locale_t __locale) throw (); extern wctype_t wctype_l (__const char *__property, __locale_t __locale) throw (); extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale) throw (); extern wint_t towlower_l (wint_t __wc, __locale_t __locale) throw (); extern wint_t towupper_l (wint_t __wc, __locale_t __locale) throw (); extern wctrans_t wctrans_l (__const char *__property, __locale_t __locale) throw (); extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, __locale_t __locale) throw (); } # 5 "test.cpp" 2 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.0/include/stddef.h" 1 3 4 # 6 "test.cpp" 2 using namespace std; ptrdiff_t ptr = 0; -- Summary: ptrdiff_t undefined if is included after and Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: faridz at apache dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36530