http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54913
Bug #: 54913 Summary: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org struct Node { }; struct E { class K {}; static const K &N; int f(Node&, const K&); }; template<typename T> struct R : Node { R(E &g) : r(g.f(*this,E::N)) {} int r; }; int main() { E e; R<int> n(e); } e.cc: In instantiation of 'R<T>::R(E&) [with T = int]': e.cc:25:15: required from here e.cc:15:21: error: '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' : r(g.f(*this,E::N)) ^