[C++] PR 45096

Submitted by Paolo Carlini on July 28, 2010, 6:14 p.m.

Details

Message ID 4C50736C.5070108@oracle.com
State New
Headers show

Commit Message

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.

Comments

Jason Merrill July 28, 2010, 6:21 p.m.
OK.

Jason

Patch hide | download patch | download mbox

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 { };