[Bug c++/17122] Unable to compile friend operator within template

2015-04-14 Thread sixenin at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122 Michael Chase changed: What|Removed |Added CC||sixenin at hotmail dot com --- Comment #

[Bug c++/17122] Unable to compile friend operator within template

2012-04-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122 Jonathan Wakely changed: What|Removed |Added CC||tkapela at poczta dot fm --- Comment #1

[Bug c++/17122] Unable to compile friend operator within template

2012-04-12 Thread redi at gcc dot gnu.org
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

[Bug c++/17122] Unable to compile friend operator within template

2012-04-12 Thread manu at gcc dot gnu.org
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

[Bug c++/17122] Unable to compile friend operator within template

2012-04-12 Thread redi at gcc dot gnu.org
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,

[Bug c++/17122] Unable to compile friend operator within template

2006-03-11 Thread relf at os2 dot ru
--- 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

[Bug c++/17122] Unable to compile friend operator within template

2006-01-23 Thread relf at os2 dot ru
--- 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;

[Bug c++/17122] Unable to compile friend operator within template

2006-01-21 Thread relf at os2 dot ru
--- 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

[Bug c++/17122] Unable to compile friend operator within template

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

[Bug c++/17122] Unable to compile friend operator within template

2005-10-22 Thread lerdsuwa at gcc dot gnu dot org
--- 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 ---

[Bug c++/17122] Unable to compile friend operator within template

2005-01-15 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Keywords||rejects-valid Last reconfirmed|2004-08-20 15:20:16 |2005-01-16 01:26:56 date|

[Bug c++/17122] Unable to compile friend operator within template

2004-10-17 Thread lerdsuwa at gcc dot gnu dot org
--- 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

[Bug c++/17122] Unable to compile friend operator within template

2004-10-17 Thread lerdsuwa at gcc dot gnu dot org
--- 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 -