[LLVMbugs] [Bug 12594] New: [Windows] Microsoft C++ ABI doesn't support static initialization yet
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 19 07:20:00 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12594
Bug #: 12594
Summary: [Windows] Microsoft C++ ABI doesn't support static
initialization yet
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This was found while building googletest:
=========================================
#include <ostream>
void foo(std::ostream& os) {
os << L"Zoo!\n";
}
int main() { }
=========================================
As or r154585 with a slightly modified MicrosoftCXXABI.cpp it prints out:
In file included from static_initializer.cpp:1:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\INCLUDE\ostream:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\INCLUDE\ios:6:
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocnum:1554:61:
error: cannot compile this don't know how to handle static initialization yet
__PURE_APPDOMAIN_GLOBAL locale::id num_put<_Elem, _OutIt>::id;
^
TODO: minimize to something really trivial
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list