Patchwork [C++] PR 45096

login
register
mail settings
Submitter Paolo Carlini
Date July 28, 2010, 6:14 p.m.
Message ID <4C50736C.5070108@oracle.com>
Download mbox | patch
Permalink /patch/60167/
State New
Headers show

Comments

Paolo Carlini - July 28, 2010, 6:14 p.m.
Hi,

adding the begin and end overloads for initializer_list very slightly
changed the behavior of the C++ front-end on this testcase and now the
error at line 13 mentions initializer_list<_Tp>, instead of the previous
initializer_list<auto>. That change seems benign to me and I'm proposing
to just tweak a bit the testcase. Patch tested x86_64-linux. Is it ok?

Thanks,
Paolo.

/////////////////
2010-07-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/45096
	* g++.dg/cpp0x/auto3.C: Tweak dg-error string.
Jason Merrill - July 28, 2010, 6:21 p.m.
OK.

Jason

Patch

Index: g++.dg/cpp0x/auto3.C
===================================================================
--- g++.dg/cpp0x/auto3.C	(revision 162649)
+++ g++.dg/cpp0x/auto3.C	(working copy)
@@ -10,7 +10,7 @@  auto x;				// { dg-error "auto" }
 auto i = 42, j = 42.0;		// { dg-error "auto" }
 
 // New CWG issue
-auto a[2] = { 1, 2 };		// { dg-error "auto" }
+auto a[2] = { 1, 2 };		// { dg-error "initializer_list" }
 
 template<class T>
 struct A { };