http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47585
Summary: remaining dependent base lookup
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
G++ accepts this invalid code:
template <class T>
struct base {
void f(void*);
};
template <class T>
struct derived : base<T> {
derived() { f(this); } /* note: f(0) breaks g++, too */
};
struct instanced : derived<unsigned> {
instanced() {}
};
See a recent discussion on news:comp.lang.c++.moderated about this:
<http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ba5a7a368233a022>