[llvm-commits] CVS: llvm-gcc/libstdc++-v3/include/bits/locale_classes.h

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 30 22:59:03 PST 2004



Changes in directory llvm-gcc/libstdc++-v3/include/bits:

locale_classes.h updated: 1.2 -> 1.3
---
Log message:

Revert a patch that broke
std::cout << 1;



---
Diffs of the changes:  (+4 -1)

Index: llvm-gcc/libstdc++-v3/include/bits/locale_classes.h
diff -u llvm-gcc/libstdc++-v3/include/bits/locale_classes.h:1.2 llvm-gcc/libstdc++-v3/include/bits/locale_classes.h:1.3
--- llvm-gcc/libstdc++-v3/include/bits/locale_classes.h:1.2	Fri Nov 19 02:43:08 2004
+++ llvm-gcc/libstdc++-v3/include/bits/locale_classes.h	Wed Dec  1 00:58:48 2004
@@ -268,7 +268,10 @@
   public:
     // NB: This class is always a static data member, and thus can be
     // counted on to be zero-initialized.
-    id() : _M_index(0) { }
+
+// FURTHERMORE: Initializing this to zero breaks libstdc++, in particular 
+// because the static ctor is run after the field has been modified.
+    id() {}
 
     inline size_t
     _M_id() const






More information about the llvm-commits mailing list