diff mbox

[C++,testcase] PR 55558

Message ID 50BA8AB1.2050002@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Dec. 1, 2012, 10:54 p.m. UTC
Hi,

I'm adding the testcase and closing the PR.

Thanks,
Paolo.

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

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

Patch

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;
+}