stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r601040 - /incubator/stdcxx/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp
Date Tue, 04 Dec 2007 19:05:37 GMT
Author: sebor
Date: Tue Dec  4 11:05:36 2007
New Revision: 601040

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

	STDCXX-604
	* 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/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp

Modified: incubator/stdcxx/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp?rev=601040&r1=601039&r2=601040&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp (original)
+++ incubator/stdcxx/trunk/tests/regress/23.bitset.cons.stdcxx-297.cpp Tue Dec  4 11:05:36
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