[Bug c++/30431] failure to check for visible declaration of friend function to template class

2012-04-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30431 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/30431] failure to check for visible declaration of friend function to template class

2007-04-25 Thread vbraun at physics dot upenn dot edu
--- 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

[Bug c++/30431] failure to check for visible declaration of friend function to template class

2007-02-10 Thread bangerth at dealii dot org
--- 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

[Bug c++/30431] failure to check for visible declaration of friend function to template class

2007-01-10 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/30431] failure to check for visible declaration of friend function to template class

2007-01-10 Thread tkapela at poczta dot fm
--- 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