Subject: c++ wstring support disappears when upgrading to gcc4
To: None <current-users@netbsd.org>
From: Mathieu Boespflug <mboes@tweag.net>
List: current-users
Date: 08/06/2006 12:13:11
Hi,

It would seem that I no longer get wstring support when compiling a
c++ program, such as the following (after upgrading userland to latest
-current):

$ cat > /tmp/test.cpp
#include <string>

int main () {
        std::wstring s;
};

$ g++ test.cpp
test.cpp: In function 'int main()':
test.cpp:4: error: 'wstring' is not a member of 'std'
test.cpp:4: error: expected `;' before 's'

This program compiled fine with gcc 3.4 and an earlier version of
-current userland.
Boost for instance doesn't compile for me anymore, with a similar
error as above.
It would seem the fixes introduced by
http://netbsd.org/cgi-bin/query-pr-single.pl?number=29832 should be
ported over to gcc4? Or is this problem due to some other change in
the userland?

Many thanks,

Mathieu