https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
Michael Chase changed:
What|Removed |Added
CC||sixenin at hotmail dot com
--- Comment #
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
Jonathan Wakely changed:
What|Removed |Added
CC||tkapela at poczta dot fm
--- Comment #1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
--- Comment #15 from Jonathan Wakely 2012-04-12
14:07:00 UTC ---
> pr17122.C:17:33: warning: friend declaration ‘void operator-(int, foo)’
> declares a non-template function [-Wnon-template-friend]
>friend void operator-(int, foo);//eliminat
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
Manuel López-Ibáñez changed:
What|Removed |Added
CC||manu at gcc dot gnu.org
--- Comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
--- Comment #13 from Jonathan Wakely 2012-04-12
12:44:13 UTC ---
Are any of the examples in this PR actually valid?
I think G++ is correct to reject them.
foo ::operator+ is parsed the same as foo::operator+ so still finds the member
function,
--- Comment #12 from relf at os2 dot ru 2006-03-12 04:14 ---
(In reply to comment #11)
> friend foo ::operator+ <>(int, foo);
I have changed it to
friend foo (::operator+ <>) (int, foo);
and now it's being compiled fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
--- Comment #11 from relf at os2 dot ru 2006-01-24 02:38 ---
Let's change returning type of friend operator+ in the original example to
foo, i.e.,
=
template
class foo;
--- Comment #10 from relf at os2 dot ru 2006-01-22 04:15 ---
Works fine on g++ 3.3.6 but fails on g++ 3.4.5 and 4.0.3.
Must be a regression.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-01-20 04:39 ---
*** Bug 25867 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #8 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:58
---
Won't work on it for a long while.
--
lerdsuwa at gcc dot gnu dot org changed:
What|Removed |Added
---
--
What|Removed |Added
Keywords||rejects-valid
Last reconfirmed|2004-08-20 15:20:16 |2005-01-16 01:26:56
date|
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-10-17 15:21
---
Will look at it while fixing friend class lookup.
--
What|Removed |Added
AssignedTo
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-10-17 15:19
---
Reopen this bug since friend class and friend function bugs
will be addressed separately. PR1016 is likely to be fixed before
this one.
--
What|Removed |Added
-
13 matches
Mail list logo