blob: eb4f18d1d8b4197050efbf9296cd362f9715fb6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/102987
// { dg-do compile { target c++11 } }
struct a {
bool b();
};
template <typename c> struct d : c {
using c::e;
using f = d;
constexpr int g(decltype(e.b())) { return buh; } // { dg-error "buh" }
};
struct h {
a e;
};
using i = d<h>;
auto j = i{}.g(1);
|