+2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/48735
+ * g++.dg/cpp0x/sfinae21.C: New.
+
+2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/template/sfinae28.C: Rename to...
+ * g++.dg/cpp0x/sfinae19.C: ... this.
+ * g++.dg/template/sfinae29.C: Rename to...
+ * g++.dg/cpp0x/sfinae20.C: ... this.
+
2011-05-09 Jeff Law <law@redhat.com>
* lib/gcc-gdb-test.exp (gdb-test): Reorder matchers to give more
--- /dev/null
+// PR c++/48737
+// { dg-options "-std=c++0x" }
+
+template<class T>
+T&& create();
+
+template<class T, class... Args>
+decltype(T{create<Args>()...}, char()) f(int);
+
+template<class, class...>
+char (&f(...))[2];
+
+static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");
--- /dev/null
+// PR c++/48744
+// { dg-options "-std=c++0x" }
+
+template<class T>
+struct add_rval_ref {
+ typedef T&& type;
+};
+
+template<>
+struct add_rval_ref<void> {
+ typedef void type;
+};
+
+template<class T>
+typename add_rval_ref<T>::type create();
+
+template<class T, class Arg>
+decltype(T{create<Arg>()}, char()) f(int);
+
+template<class, class>
+char (&f(...))[2];
+
+static_assert(sizeof(f<int, void>(0)) != 1, "Error");
--- /dev/null
+// PR c++/48735
+// { dg-options "-std=c++0x" }
+
+template<class T,
+ class = decltype(T{})
+>
+char f(int);
+
+template<class>
+char (&f(...))[2];
+
+struct ND { ND() = delete; };
+
+static_assert(sizeof(f<ND[1]>(0)) != 1, "Error");
+++ /dev/null
-// PR c++/48737
-// { dg-options "-std=c++0x" }
-
-template<class T>
-T&& create();
-
-template<class T, class... Args>
-decltype(T{create<Args>()...}, char()) f(int);
-
-template<class, class...>
-char (&f(...))[2];
-
-static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");
+++ /dev/null
-// PR c++/48744
-// { dg-options "-std=c++0x" }
-
-template<class T>
-struct add_rval_ref {
- typedef T&& type;
-};
-
-template<>
-struct add_rval_ref<void> {
- typedef void type;
-};
-
-template<class T>
-typename add_rval_ref<T>::type create();
-
-template<class T, class Arg>
-decltype(T{create<Arg>()}, char()) f(int);
-
-template<class, class>
-char (&f(...))[2];
-
-static_assert(sizeof(f<int, void>(0)) != 1, "Error");