Patchwork [C++,testcase] PR 55558

login
register
mail settings
Submitter Paolo Carlini
Date Dec. 1, 2012, 10:54 p.m.
Message ID <50BA8AB1.2050002@oracle.com>
Download mbox | patch
Permalink /patch/203157/
State New
Headers show

Comments

Paolo Carlini - Dec. 1, 2012, 10:54 p.m.
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.

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