]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/44810 (FAIL: g++.dg/torture/pr36745.C)
authorJason Merrill <jason@redhat.com>
Wed, 14 Jul 2010 17:01:15 +0000 (13:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 14 Jul 2010 17:01:15 +0000 (13:01 -0400)
PR c++/44810
* g++.dg/torture/pr36745.C: Avoid undefined behavior.

From-SVN: r162189

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr36745.C

index 6b878c5f31943d4f453077b207ffe3417cf04283..b2a9a3c4d92340a4d4f559a473f712b7da861296 100644 (file)
@@ -1,5 +1,8 @@
 2010-07-14  Jason Merrill  <jason@redhat.com>
 
+       PR c++/44810
+       * g++.dg/torture/pr36745.C: Avoid undefined behavior.
+
        Implement C++0x unrestricted unions (N2544)
        * g++.dg/cpp0x/union1.C: New.
        * g++.dg/cpp0x/union2.C: New.
index 86047f1f0d8be72a9e765539d645051feeb5e715..53845aaa78e28afa0eafbd6e60487f5e09a18574 100644 (file)
@@ -52,6 +52,7 @@ public: inline QMap ():d (&QMapData::shared_null)
 };
 struct QVectorData
 {
+  QBasicAtomicInt ref;
   static QVectorData shared_null;
 };
 template < typename T > struct QVectorTypedData