stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r601042 - /incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp
Date Tue, 04 Dec 2007 19:07:46 GMT
Author: sebor
Date: Tue Dec  4 11:07:45 2007
New Revision: 601042

URL: http://svn.apache.org/viewvc?rev=601042&view=rev
Log:
2007-11-29 Travis Vitek <vitek@roguewave.com>

        Merged rev 601040 with fix for STDCXX-604 from trunk.
        * tests/regress/23.bitset.cons.stdcxx-297.cpp (main): Avoid passing
        temporary to constructor to work around ICE with IBM VA C++.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp?rev=601042&r1=601041&r2=601042&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/regress/23.bitset.cons.stdcxx-297.cpp Tue Dec  4
11:07:45 2007
@@ -39,7 +39,8 @@
     char buf [size + 4];
     memset (buf, '\xff', sizeof (buf));
 
-    BitSet* btest = new (buf) BitSet (std::basic_string<int> ());
+    const std::basic_string<int> s;
+    BitSet* btest = new (buf) BitSet (s);
 
     for (std::size_t i = size; i < sizeof (buf); ++i)
         assert ('\xff' == buf [i]);



Mime
View raw message