[Bug c++/32410] Const functions in template don't give access errors with this until instantiated.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 19 23:13:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-19 23:13 -------
This is correct as "*this" is dependent so the compiler cannot resolve that
until instantation time so this is not a bug.
>This is inconsistent behavior.
Yes but i here is not depdendent. While this->i is.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32410
More information about the Gcc-bugs
mailing list