This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32410] Const functions in template don't give access errors with this until instantiated.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2007 23:13:15 -0000
- Subject: [Bug c++/32410] Const functions in template don't give access errors with this until instantiated.
- References: <bug-32410-14724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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