Re: [PATCH] c++: Add test for DR 1423, Convertibility of nullptr to bool.

2020-02-25 Thread Jason Merrill
On 2/24/20 1:09 PM, Marek Polacek wrote: DR 1423, which supersedes DR 654, says that you can't copy-init a bool from a std::nullptr_t: bool b = nullptr; // error Conversely, it works with direct-initialization which is more permissive than copy-initialization. No code changes necessary sin

[PATCH] c++: Add test for DR 1423, Convertibility of nullptr to bool.

2020-02-24 Thread Marek Polacek
DR 1423, which supersedes DR 654, says that you can't copy-init a bool from a std::nullptr_t: bool b = nullptr; // error Conversely, it works with direct-initialization which is more permissive than copy-initialization. No code changes necessary since we handle it right. Tested on x86_64-lin