diff mbox

C++ PATCH for c++/61382 (init-list evaluation order)

Message ID mvmzjhrbwv6.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab June 5, 2014, 8:10 a.m. UTC
* g++.dg/cpp0x/initlist86.C (main): Initialize i.

Comments

Jason Merrill June 5, 2014, 12:48 p.m. UTC | #1
Oops, thanks.

Jason
diff mbox

Patch

diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist86.C b/gcc/testsuite/g++.dg/cpp0x/initlist86.C
index 16af476..ace2ef9 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist86.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist86.C
@@ -11,7 +11,7 @@  extern "C" int printf (const char *, ...);
 
 int main()
 {
-  int i;
+  int i = 0;
   A a{i++,i++};
   if (a.i != 0 || a.j != 1)
     __builtin_abort();