* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
@ 2013-11-26 11:22 ` redi at gcc dot gnu.org
2014-03-26 18:52 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2013-11-26 11:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-11-26
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
2013-11-26 11:22 ` [Bug c++/59296] " redi at gcc dot gnu.org
@ 2014-03-26 18:52 ` redi at gcc dot gnu.org
2014-03-26 18:54 ` redi at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-26 18:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paul at preney dot ca
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 60631 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
2013-11-26 11:22 ` [Bug c++/59296] " redi at gcc dot gnu.org
2014-03-26 18:52 ` redi at gcc dot gnu.org
@ 2014-03-26 18:54 ` redi at gcc dot gnu.org
2014-06-18 21:00 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-26 18:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
reduced:
struct Type
{
void get() const& { }
void get() const&& { }
};
int main()
{
Type{}.get();
}
The ambiguity happens when both overloads are const-qualified and *this is an
rvalue
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (2 preceding siblings ...)
2014-03-26 18:54 ` redi at gcc dot gnu.org
@ 2014-06-18 21:00 ` jason at gcc dot gnu.org
2014-06-18 22:14 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-18 21:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org,
| |ville.voutilainen at gmail dot com
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (3 preceding siblings ...)
2014-06-18 21:00 ` jason at gcc dot gnu.org
@ 2014-06-18 22:14 ` jason at gcc dot gnu.org
2014-06-19 9:35 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-18 22:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jun 18 22:13:51 2014
New Revision: 211809
URL: https://gcc.gnu.org/viewcvs?rev=211809&root=gcc&view=rev
Log:
PR c++/59296
* call.c (add_function_candidate): Set LOOKUP_NO_RVAL_BIND for
ref-qualifier handling.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/ref-qual15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (4 preceding siblings ...)
2014-06-18 22:14 ` jason at gcc dot gnu.org
@ 2014-06-19 9:35 ` jason at gcc dot gnu.org
2014-06-19 9:36 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-19 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jun 19 09:34:57 2014
New Revision: 211820
URL: https://gcc.gnu.org/viewcvs?rev=211820&root=gcc&view=rev
Log:
PR c++/59296
* call.c (add_function_candidate): Set LOOKUP_NO_RVAL_BIND
|LOOKUP_NO_TEMP_BIND for ref-qualifier handling.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/ref-qual15.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/call.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (5 preceding siblings ...)
2014-06-19 9:35 ` jason at gcc dot gnu.org
@ 2014-06-19 9:36 ` jason at gcc dot gnu.org
2014-06-20 18:33 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-19 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jun 19 09:36:09 2014
New Revision: 211821
URL: https://gcc.gnu.org/viewcvs?rev=211821&root=gcc&view=rev
Log:
PR c++/59296
* call.c (add_function_candidate): Also set LOOKUP_NO_TEMP_BIND.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (6 preceding siblings ...)
2014-06-19 9:36 ` jason at gcc dot gnu.org
@ 2014-06-20 18:33 ` jason at gcc dot gnu.org
2014-06-20 18:35 ` jason at gcc dot gnu.org
2014-11-19 9:59 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-20 18:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 20 18:32:35 2014
New Revision: 211854
URL: https://gcc.gnu.org/viewcvs?rev=211854&root=gcc&view=rev
Log:
PR c++/59296
* call.c (add_function_candidate): Avoid special 'this' handling
if we have a ref-qualifier.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (7 preceding siblings ...)
2014-06-20 18:33 ` jason at gcc dot gnu.org
@ 2014-06-20 18:35 ` jason at gcc dot gnu.org
2014-11-19 9:59 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-20 18:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 20 18:35:19 2014
New Revision: 211856
URL: https://gcc.gnu.org/viewcvs?rev=211856&root=gcc&view=rev
Log:
PR c++/59296
* call.c (add_function_candidate): Avoid special 'this' handling
if we have a ref-qualifier.
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/call.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
2013-11-26 4:14 [Bug c++/59296] New: [c++11] ref-qualified member function is ambiguous eric.niebler at gmail dot com
` (8 preceding siblings ...)
2014-06-20 18:35 ` jason at gcc dot gnu.org
@ 2014-11-19 9:59 ` paolo.carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-19 9:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59296
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC|jason at gcc dot gnu.org |
Resolution|--- |FIXED
Target Milestone|--- |4.9.1
--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.1 then.
^ permalink raw reply [flat|nested] 11+ messages in thread