aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-06-09 11:11:42 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-06-09 11:11:42 -0400
commitbfc54a2744a19b7cb93c697f38517a17334075ad (patch)
tree51b3d9db5db1fb2f518f6fe50ed6bcec075cacca
parentf1a0b754cf8762f602d0f6053579927e9df1dc2f (diff)
downloadgcc-bfc54a2744a19b7cb93c697f38517a17334075ad.zip
gcc-bfc54a2744a19b7cb93c697f38517a17334075ad.tar.gz
gcc-bfc54a2744a19b7cb93c697f38517a17334075ad.tar.bz2
re PR c++/44366 ([C++0x] g++ crashes when declaring a lambda expression using a typedef'd decltype.)
PR c++/44366 * g++.dg/cpp0x/decltype23.C: Move to... * g++.dg/diagnostic/parm1.C: ...here, and remove decltype. From-SVN: r160483
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/diagnostic/parm1.C (renamed from gcc/testsuite/g++.dg/cpp0x/decltype23.C)5
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 560e6a4..db03751 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype23.C b/gcc/testsuite/g++.dg/diagnostic/parm1.C
index 6d8dff9..2e553e2 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 <typename T>
-void f(T t, decltype(*t))
+void f(T t, int(*)[sizeof(t)])
{
struct A { void g() {
foo; // { dg-error "foo" }