2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48522
* g++.dg/cpp0x/pr48522.C: New.
From-SVN: r173598
+2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/48522
+ * g++.dg/cpp0x/pr48522.C: New.
+
2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48735
--- /dev/null
+// { dg-options "-std=c++0x" }
+
+template <typename T>
+struct Handle
+{
+ Handle(T& t);
+};
+
+template<class T>
+struct Class {
+ struct Struct {} data;
+ void f();
+ void g();
+};
+
+template<class T>
+void Class<T>::f() {
+ Handle< decltype((data)) > handle(data);
+}
+
+template<class T>
+void Class<T>::g() {
+ Handle< decltype((data)) > handle(data);
+}