Message ID | 50BA8AB1.2050002@oracle.com |
---|---|
State | New |
Headers | show |
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; +}