Hi,

I'm adding the testcase and closing the PR.

Thanks,
Paolo.

///////////////////
2012-12-01  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/55558
        * g++.dg/cpp0x/decltype46.C: New.
Index: g++.dg/cpp0x/decltype46.C
===================================================================
--- g++.dg/cpp0x/decltype46.C   (revision 0)
+++ g++.dg/cpp0x/decltype46.C   (working copy)
@@ -0,0 +1,12 @@
+// PR c++/55558
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+  static int member;
+};
+
+template<typename T> void foobar ()
+{
+  typedef decltype (A::member) myType;
+}

Reply via email to