[Bug c++/47585] New: remaining dependent base lookup
kreckel at ginac dot de
gcc-bugzilla@gcc.gnu.org
Wed Feb 2 09:06:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: kreckel@ginac.de
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>
More information about the Gcc-bugs
mailing list