--- Comment #4 from pinskia at gcc dot gnu dot org 2006-10-21 20:23 ---
(In reply to comment #3)
> For the testcase in comment #2, on the mainline, we get a different error
> message:
That is the correct error so closing as fixed for 4.2.0 as friends don't inject
at all.
--
pinskia
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-30
05:12 ---
For the testcase in comment #2, on the mainline, we get a different error
message:
t.cc:2: warning: friend declaration void foo(T*) declares a non-template
function
t.cc:2: warning: (if this is not what
--- Additional Comments From bangerth at dealii dot org 2005-07-08 14:58
---
I don't quite know what to say, whether this is a bug or not. Take
this reduced snippet:
---
template struct S {
friend void foo(T *);
};
template void bar() { foo((T*)0); }
--
What|Removed |Added
Keywords||rejects-valid
Known to fail||2.95.3 3.2.3 3.3.3 3.4.0
|
--- Additional Comments From bangerth at dealii dot org 2005-07-08 14:19
---
*** Bug 22364 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22363