From patchwork Wed Jul 28 18:14:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++] PR 45096 Date: Wed, 28 Jul 2010 08:14:04 -0000 From: Paolo Carlini X-Patchwork-Id: 60167 Message-Id: <4C50736C.5070108@oracle.com> To: "gcc-patches@gcc.gnu.org" Cc: Jason Merrill 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. 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 PR c++/45096 * g++.dg/cpp0x/auto3.C: Tweak dg-error string. 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 struct A { };