]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/decltype30.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype30.C
1 // PR c++/49369
2 // { dg-do compile { target c++11 } }
3
4 template <class,class> struct assert_same;
5 template <class T> struct assert_same<T,T> {};
6
7 struct B {
8 int member;
9 };
10
11 struct C: B {
12 void method() const;
13 };
14
15 void C::method() const {
16 assert_same<decltype((B::member)), const int&> a;
17 }
This page took 0.040221 seconds and 5 git commands to generate.