This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41231] Error when declaring a nested template member class of a dependent template class a friend



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]