This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with wchar_t on c++, not on C


There seems to be a problem with an internal definition
of wchar_t on the cc1plus (but not on the cc1). The
short sample program below gives no error for the first line,
but does for the second line. No header files are used, so
it must be internal to the compiler. 

20001223 snapshot from CVS.
Configured with 
$ ../gcc/configure --target=mips-wrs-vxworks
on
$ uname -a
CYGWIN_NT-5.0 SNAPPLE 1.1.6(0.30/3/2) 2000-11-21 21:00 i686 unknown

---b.cc---
typedef char __wchar_t;
typedef char wchar_t;
----------

$ cc1plus.exe b.cc
b.cc:2: declaration does not declare anything

$ cc1plus.exe -v
GNU CPP version 2.97 20001223 (experimental) (cpplib) [AL 1.1, MM 40] BSD
Mips

This may or may not have something to do with:

2000-11-07  Eric Christopher  <echristo@redhat.com>

        * decl.c (init_decl_processing): Change definition of
        __wchar_t to wchar_t.  Remove artificial declaration of
        wchar_t.
        * lex.c: Change instances of __wchar_t to wchar_t.



begin 600 Don Bowman (E-mail).vcf

`
end

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]