[C++,testcase] PR 55558

Submitted by Paolo Carlini on Dec. 1, 2012, 10:54 p.m.

Details

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

Commit Message

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 hide | download patch | download mbox

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