[Bug c++/41231] Error when declaring a nested template member class of a dependent template class a friend
pleexed at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 3 16:36:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list