http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
Earnie changed:
What|Removed |Added
CC||earnie at users dot
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #8 from Bastien ROUCARIES
2011-06-10 10:14:06 UTC ---
Any news of this bug ?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #7 from Bastien ROUCARIES
2011-02-04 09:41:04 UTC ---
Sorry replace the last linux by cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #6 from Bastien ROUCARIES
2011-02-04 09:39:02 UTC ---
I have checked with gcc -E the following program:
typedef __WCHAR_TYPE__ wchar_t;
under linux it output typedef int wchar_t
under linux with -fno-short-char it output typedef int
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #5 from Bastien ROUCARIES
2011-02-04 09:25:36 UTC ---
ok thanks it is defined in the header and in this case they are two bugs.
Try the following program
#include
typedef __WCHAR_TYPE__ wchar_t;
wchar_t a[] = L"aa";
int s = sizeof
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #4 from Andrew Pinski 2011-02-04
08:33:03 UTC ---
It is a builtin type (for C++ it is exposed as the keyword, wchar_t). For C,
the headers define the type, see the preprocessed source to show that is the
case.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #3 from Bastien ROUCARIES
2011-02-04 08:27:40 UTC ---
BTW i have checked the source code, and if my memory is correct wchar_t is
defined as
MODIFIED_WCHAR_T = fshortwchar ? "Short int" : WCHAR_T
Where wchar_t is defined by the archit
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #2 from Bastien ROUCARIES
2011-02-04 08:21:20 UTC ---
I disagree
wchar_t is a building type. Indeed L"aa" should expand to 16 bits packed char
with short wchar and 32 bits with no-short-wchar.
Due to the LNaaN constant specification
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47599
--- Comment #1 from Andrew Pinski 2011-02-03
18:51:51 UTC ---
This is a header issue which means it is not a GCC bug.