Summary: | ptrdiff_t undefined if <stddef.h> is included after <wchar.h> and <wctype.h> | ||
---|---|---|---|
Product: | gcc | Reporter: | Farid Zaripov <faridz> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | major | CC: | gcc-bugs |
Priority: | P3 | ||
Version: | 4.2.3 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Farid Zaripov
2008-06-13 16:12:37 UTC
If anything, this isn't a libstdc++, because in our implementation of the C++ runtime library <wchar.h> and the other "C" headers are not touched at all. As a matter of fact, I suspect Ubuntu is at fault, it's know to play strange tricks with the headers. I'll leave to others to analyze that... You're right, the problem in Ubuntu's /usr/include/wctype.h header file: ----------- ... /* Get wint_t from <wchar.h>. */ #define __need_wint_t #include <wchar.h> ... ----------- Here after that lines should be "#undef __need_wint_t"... |