public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3115: g++ find a friend operator while it should not
@ 2002-07-06 7:15 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-07-06 7:15 UTC (permalink / raw)
To: bourguet, dosreis, gcc-bugs, gcc-prs, nobody
Synopsis: g++ find a friend operator while it should not
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jul 6 07:15:45 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3115
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/3115: g++ find a friend operator while it should not
@ 2003-01-02 18:57 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-01-02 18:57 UTC (permalink / raw)
To: bourguet, dosreis, gcc-bugs, gcc-prs, nobody
Synopsis: g++ find a friend operator while it should not
State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Thu Jan 2 10:57:49 2003
State-Changed-Why:
Already fixed everywhere.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3115
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/3115: g++ find a friend operator while it should not
@ 2001-06-11 1:26 bourguet
0 siblings, 0 replies; 3+ messages in thread
From: bourguet @ 2001-06-11 1:26 UTC (permalink / raw)
To: gcc-gnats; +Cc: Gabriel Dos Reis
>Number: 3115
>Category: c++
>Synopsis: g++ find a friend operator while it should not
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 11 01:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: bourguet@cadence.com
>Release: Current snapshot at code sourcery
>Organization:
>Environment:
>Description:
The appended code compile while it should not. The
operator+ is in the lexical scope of additive_group_sig
(11.4.5) and so should be found only using argument
dependent name lookup.
template <typename T>
struct additive_group_sig {
friend T operator+(const T& u, const T& v) {
T t(u);
t += v;
return t;
}
};
class Integer {
public:
Integer& operator+=(const Integer&);
private:
additive_group_sig<Integer> x;
};
int main() {
Integer d, e, f;
f = e + d;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-02 18:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-06 7:15 c++/3115: g++ find a friend operator while it should not lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2003-01-02 18:57 paolo
2001-06-11 1:26 bourguet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).