OSDN Git Service

PR c++/44366
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jun 2010 15:11:42 +0000 (15:11 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jun 2010 15:11:42 +0000 (15:11 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/parm1.C [moved from gcc/testsuite/g++.dg/cpp0x/decltype23.C with 53% similarity]

index 560e6a4..db03751 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-09  Jason Merrill  <jason@redhat.com>
+
+       PR c++/44366
+       * g++.dg/cpp0x/decltype23.C: Move to...
+       * g++.dg/diagnostic/parm1.C: ...here, and remove decltype.
+
 2010-06-09  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/44211
similarity index 53%
rename from gcc/testsuite/g++.dg/cpp0x/decltype23.C
rename to gcc/testsuite/g++.dg/diagnostic/parm1.C
index 6d8dff9..2e553e2 100644 (file)
@@ -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 <typename T>
-void f(T t, decltype(*t))
+void f(T t, int(*)[sizeof(t)])
 {
   struct A { void g() {
     foo;                       // { dg-error "foo" }