Open Quuxplusone opened 4 years ago
Bugzilla Link | PR47704 |
Status | NEW |
Importance | P normal |
Reported by | Paweł Bylica (chfast@gmail.com) |
Reported on | 2020-10-01 09:38:26 -0700 |
Last modified on | 2020-10-01 14:15:46 -0700 |
Version | trunk |
Hardware | All All |
CC | blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, hstong@ca.ibm.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The choice between the candidates is determined by the rank of the implicit conversion sequences. The standard conversion from a null pointer constant to void *
is a better conversion sequence than the user-defined conversion sequence involving the converting constructor.
Looks like http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1467 is relevant.
The DR1467 wording does not override the selection between a standard conversion sequence and a user-defined conversion sequence.