re PR c++/55558 ([C++11] decltype on a static member variable in a template function...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 1 Dec 2012 22:52:27 +0000 (22:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 1 Dec 2012 22:52:27 +0000 (22:52 +0000)
2012-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55558
* g++.dg/cpp0x/decltype46.C: New.

From-SVN: r194036

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype46.C [new file with mode: 0644]

index a1686a6674a384323ea82ae24c7bf6b587ebe70b..40ba775c84e71924d5a1ccd8aa69094dab664474 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-01  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/55558
+       * g++.dg/cpp0x/decltype46.C: New.
+
 2012-12-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR middle-end/52450
diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype46.C b/gcc/testsuite/g++.dg/cpp0x/decltype46.C
new file mode 100644 (file)
index 0000000..f18354d
--- /dev/null
@@ -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;
+}