[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-17 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|4.6.2   |4.7.0

--- Comment #6 from Jason Merrill jason at gcc dot gnu.org 2011-09-17 
22:37:08 UTC ---
The fix in 4.6.2 caused bug 50442, so I've reverted it; still fixed for 4.7.


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-17 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

--- Comment #5 from Jason Merrill jason at gcc dot gnu.org 2011-09-17 
22:35:15 UTC ---
Author: jason
Date: Sat Sep 17 22:35:10 2011
New Revision: 178932

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=178932
Log:
PR c++/50442
Revert:
PR c++/49267
* call.c (compare_ics): rvaluedness_matches_p can differ
based on the source type, not just target.

Removed:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/rv-conv1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/call.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

--- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2011-09-05 
15:44:06 UTC ---
Author: jason
Date: Mon Sep  5 15:43:58 2011
New Revision: 178552

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=178552
Log:
PR c++/49267
* call.c (compare_ics): rvaluedness_matches_p can differ
based on the source type, not just target.

Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/rv-conv1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/call.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|4.7.0   |4.6.2

--- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2011-09-05 
15:45:32 UTC ---
Fixed for 4.6.2.


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-04 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011-09-04
 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org
   |gnu.org |
   Target Milestone|--- |4.7.0
 Ever Confirmed|0   |1


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-04 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

--- Comment #2 from Jason Merrill jason at gcc dot gnu.org 2011-09-05 
04:34:01 UTC ---
Author: jason
Date: Mon Sep  5 04:33:57 2011
New Revision: 178521

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=178521
Log:
PR c++/49267
* call.c (reference_binding): Don't set is_lvalue for an rvalue
reference rfrom.

Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c


[Bug c++/49267] Ambiguity with conversion functions T and T, initializing a T

2011-09-04 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49267

--- Comment #1 from Jason Merrill jason at gcc dot gnu.org 2011-09-05 
04:33:53 UTC ---
Author: jason
Date: Mon Sep  5 04:33:48 2011
New Revision: 178520

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=178520
Log:
PR c++/49267
PR c++/49458
DR 1328
* call.c (reference_binding): Set rvaluedness_matches_p properly
for reference to function conversion ops.
(compare_ics): Adjust.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/rv-conv1.C
trunk/gcc/testsuite/g++.dg/cpp0x/rv-func3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog