From: jason Date: Wed, 9 Jun 2010 15:11:42 +0000 (+0000) Subject: PR c++/44366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7aa42ed8e6eb306b050760ca1d05a237a050b3f;p=thirdparty%2Fgcc.git PR c++/44366 * g++.dg/cpp0x/decltype23.C: Move to... * g++.dg/diagnostic/parm1.C: ...here, and remove decltype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160483 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 560e6a47e942..db037516e293 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-06-09 Jason Merrill + + PR c++/44366 + * g++.dg/cpp0x/decltype23.C: Move to... + * g++.dg/diagnostic/parm1.C: ...here, and remove decltype. + 2010-06-09 Janus Weil PR fortran/44211 diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype23.C b/gcc/testsuite/g++.dg/diagnostic/parm1.C similarity index 53% rename from gcc/testsuite/g++.dg/cpp0x/decltype23.C rename to gcc/testsuite/g++.dg/diagnostic/parm1.C index 6d8dff9bb4b2..2e553e2d4c5a 100644 --- a/gcc/testsuite/g++.dg/cpp0x/decltype23.C +++ b/gcc/testsuite/g++.dg/diagnostic/parm1.C @@ -1,10 +1,9 @@ // PR c++/44366 -// While printing the operand of decltype We were trying to print f as the +// While printing the operand of sizeof We were trying to print f as the // scope of t, causing infinite recursion. -// { dg-options "-std=c++0x" } template -void f(T t, decltype(*t)) +void f(T t, int(*)[sizeof(t)]) { struct A { void g() { foo; // { dg-error "foo" }