aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-02-24 12:56:00 -0500
committerMarek Polacek <polacek@redhat.com>2020-02-26 10:14:33 -0500
commitb9934ad88d6b27e5cf1a34d88dbefb2bbe928753 (patch)
treec44fcb5272b54f5d515563f41b0ef3b3d98a5a7d /gcc/cp/init.c
parentd6ff22074126d38829f25981de9d6940cd2a234c (diff)
downloadgcc-b9934ad88d6b27e5cf1a34d88dbefb2bbe928753.zip
gcc-b9934ad88d6b27e5cf1a34d88dbefb2bbe928753.tar.gz
gcc-b9934ad88d6b27e5cf1a34d88dbefb2bbe928753.tar.bz2
c++: Add test for DR 1423, Convertibility of nullptr to bool.
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. 2020-02-26 Marek Polacek <polacek@redhat.com> DR 1423, Convertibility of nullptr to bool. * g++.dg/DRs/dr1423.C: New test.
Diffstat (limited to 'gcc/cp/init.c')
0 files changed, 0 insertions, 0 deletions