MinGW 4.7 libstdc++ can not work with Clang 3.1

Hi All£¡

  I build Clang 3.1 with VS2008, and I install MinGW 4.7 in my Windows 7 too.

  I write main.cpp file like this:

#include <iostream>

using namespace std;

int main()
  cout << "Hello World!\n" << endl;
  return 0;

When I build main.cpp with MinGW GCC: g++.exe main.cpp -o main.exe

main.exe can execute good.

But When I build main.cpp with Clang: clang++.exe -ccc-host-triple i386-pc-mingw32 main.cpp -o main.exe

After main.exe print "Hello World", it crash in libstdc++-6.dll module.

How can I resolve this problem? or I have to degrade to MinGW 4.2?



I think I saw this last time I tried mingw 4.7 so I went back to 4.6.2
which works without problems.