blob: eb4f18d1d8b4197050efbf9296cd362f9715fb6d [file] [log] [blame]
// 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);