This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41690] Scoping is incorrect for inherited classes nested inside a templated class.
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2009 10:26:26 -0000
- Subject: [Bug c++/41690] Scoping is incorrect for inherited classes nested inside a templated class.
- References: <bug-41690-18308@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from paolo dot carlini at oracle dot com 2009-10-13 10:26 -------
To be clear, the use of this-> isn't a "workaround", is the way C++ as
specified in the current International standard works. This is not the place
for general explanations, you may want to browse D. Vandevoorde and Nicolai M.
Josuttis, "C++ Templates", Addison Wesley, for a clear treatment of the this->,
typename, ::templte, .template, etc., subtleties and *much* more.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41690