Hi,

I committed the testcase to mainline and 4_6-branch and closed the PR as already fixed.
Tested x86_64-linux.

Paolo.

////////////////////

2011-05-09  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/48522
        * g++.dg/cpp0x/pr48522.C: New.

Index: g++.dg/cpp0x/pr48522.C
===================================================================
--- g++.dg/cpp0x/pr48522.C      (revision 0)
+++ g++.dg/cpp0x/pr48522.C      (revision 0)
@@ -0,0 +1,24 @@
+// { 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);
+}

Reply via email to