[Bug c++/46731] GCC shouts "cannot call member function 'void a::g()' without object" if a is a dependent base class
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 1 13:52:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46731
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.12.01 13:52:15
Ever Confirmed|0 |1
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-01 13:52:15 UTC ---
Confirmed. EDG accepts it.
But I would argue that g is bound at first stage name-lookup
and thus it is not a dependent name and thus the error is correct.
More information about the Gcc-bugs
mailing list