http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30431
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
--- Comment #4 from vbraun at physics dot upenn dot edu 2007-04-25 16:51
---
Super-condensed testcase (gcc 4.1.2):
-- snip on -
template void f() {}
class A
{
void f() {};
friend void f(); // line 5
};
-- snip off -
[EMAIL
--- Comment #3 from bangerth at dealii dot org 2007-02-11 03:55 ---
As one data point: if it indeed finds the local function foo, then one
could think that declaring the friend as
friend T ::foo<>(const CTest &test);
might work (note the explicit global scope on the function name). Ala
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-10 23:55 ---
I think this is the correct error because it is finding class's foo.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30431
--- Comment #1 from tkapela at poczta dot fm 2007-01-10 23:47 ---
Created an attachment (id=12883)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12883&action=view)
Simple example when compilator fails
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30431