Program crashes when build Clang with mingw-gcc-4.7.0

I try to build Clang for windows with MinGW[1].
I build Clang using gcc-4.6.3[2]. All the programs which are built
using it, are compiled and work successfully.
But if when I build Clang using gcc-4.7.0[3], programs which written
on C++ crash when run-time. C-code programs are compiled and work
successfully.
simple example:

#include <iostream>
int main() {
  std::cout << "Hello world!" << std::endl;
  return 0;
}

backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x6fcd4282 in libstdc++-6!_ZSt4cout () from d:\mingw\bin\libstdc++-6.dll
#0 0x6fcd4282 in libstdc++-6!_ZSt4cout () from d:\mingw\bin\libstdc++-6.dll
#1 0x6fc8ce6a in libstdc++-6!_ZNSolsEPFRSoS_E ()
   from d:\mingw\bin\libstdc++-6.dll
#2 0x00401618 in ?? ()
#3 0x004013ea in ?? ()
#4 0x756c339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from C:\Windows\syswow64\kernel32.dll
#5 0x7efde000 in ?? ()
#6 0x77059ef2 in ntdll!RtlpNtSetValueKey ()
   from C:\Windows\system32\ntdll.dll
#7 0x7efde000 in ?? ()
#8 0x77059ec5 in ntdll!RtlpNtSetValueKey ()
   from C:\Windows\system32\ntdll.dll
#9 0x004014d0 in ?? ()
#10 0x00000000 in ?? ()
(gdb)

Thanks!

[1] http://sourceforge.net/projects/mingwbuilds/
[2] http://sourceforge.net/projects/mingwbuilds/files/windows-host/4.6.3/i686-mingw32-gcc-4.6.3-release-c%2Cc%2B%2B%2Cfortran.7z/download
[3] http://sourceforge.net/projects/mingwbuilds/files/windows-host/4.7.0/i686-mingw32-gcc-4.7.0-release-c%2Cc%2B%2B%2Cfortran.7z/download

I try to build Clang for windows with MinGW[1].
I build Clang using gcc-4.6.3[2]. All the programs which are built
using it, are compiled and work successfully.
But if when I build Clang using gcc-4.7.0[3], programs which written
on C++ crash when run-time. C-code programs are compiled and work
successfully.

It might be yet another manifestation of
http://llvm.org/bugs/show_bug.cgi?id=11926

Try to recompile clang/llvm with -O0

2012/4/27 Anton Korobeynikov:

Try to recompile clang/llvm with -O0

No changes. All is still.

Ping?

2012/4/28 niXman:

2012/4/27 niXman:

2012/4/27 Anton Korobeynikov:

Try to recompile clang/llvm with -O0

No changes. All is still.

Ping?

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-April/021027.html
ping?

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-April/021027.html

What did you try to say this way? This is just a link to your first
message in this thread.

2012/4/29 Anton Korobeynikov:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-April/021027.html

What did you try to say this way? This is just a link to your first
message in this thread.

That's what I wanted to say. I.e. point to subject.
You have something to say on the subject?

Thanks.

You have something to say on the subject?

No.