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