--- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-30 11:44 ---
IMHO the friend declaration isn't a declaration for func.
At least it shouldn't inject the name into Foo.
EDG agrees with me here:
icpc -S t.C -strict_ansi
t.C(12): error: identifier "func" is undefined
func(x)
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-12-30 11:44 ---
*** Bug 34827 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34870
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-30 05:45 ---
*** Bug 34827 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keyw
--- Comment #1 from dragan at plusplus dot co dot yu 2008-01-19 11:39
---
Created an attachment (id=14974)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14974&action=view)
a simple test case (the same as in the bug description)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3