- Implicit conversion sequence with a null pointer constant
- 126.96.36.199.1 [over.best.ics.general]
- Lénárd Szolnoki
Created on 2023-01-07.00:00:00
last changed 3 weeks ago
Subclause 188.8.131.52.1 [over.best.ics.general] paragraph 1, as modified by
issue 2525, claims that only the type,
cv-qualification, and value category of the argument are relevant in
forming an implicit conversion sequence. This is inaccurate for the
- A literal 0 can be implicitly converted to a parameter of
type void* (and in practice, an implicit conversion sequence
does exist), yet the literal 0 has the same type,
cv-qualification, and value category as the literal 1 despite
no such implicit conversion being allowed for the latter.
- An initializer list does not have a type, cv-qualification, or
value category at all.
- An overload set does not have a single (function) type.