This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41231] Error when declaring a nested template member class of a dependent template class a friend
- From: "pleexed at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2009 16:36:07 -0000
- Subject: [Bug c++/41231] Error when declaring a nested template member class of a dependent template class a friend
- References: <bug-41231-18147@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pleexed at gmail dot com 2009-09-03 16:36 -------
Created an attachment (id=18481)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18481&action=view)
Workaround
By declaring a typedef in a templated proxy class and using that in the friend
declaration, the desired effect of the original testcase can be produced,
without provoking a compiler or linker error.
The code in this attachment works on my system as posted in the initial bug
report (g++ (Ubuntu 4.3.2-2ubuntu9) 4.3.3 20081217 (prerelease)).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41231