Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / using1.C
blob4090dd24a60775e8300eedc3d8120b6906c7f693
1 // PR c++/102987
2 // { dg-do compile { target c++11 } }
4 struct a {
5   bool b();
6 };
7 template <typename c> struct d : c {
8   using c::e;
9   using f = d;
10   // { dg-message "decltype .c::e" "" { target *-*-* } 0 }
11   constexpr int g(decltype(e.b())) { return buh; } // { dg-error "buh" }
13 struct h {
14   a e;
16 using i = d<h>;
17 auto j = i{}.g(1);