diff options
author | Marek Polacek <polacek@redhat.com> | 2020-05-07 11:14:51 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-05-07 13:41:33 -0400 |
commit | 0ca22d027eccb55215bb553b66fb10637344e2e6 (patch) | |
tree | acb943efac6d5545437e32535fd309de96a75fb8 /gcc/tree-ssa-operands.c | |
parent | b9250b3cb91b667cd67943e0fac94bf39ac089a8 (diff) | |
download | gcc-0ca22d027eccb55215bb553b66fb10637344e2e6.zip gcc-0ca22d027eccb55215bb553b66fb10637344e2e6.tar.gz gcc-0ca22d027eccb55215bb553b66fb10637344e2e6.tar.bz2 |
c++: Implement P1957R2, T* to bool should be considered narrowing.
This was approved in the Prague 2020 WG21 meeting so let's adjust the
comment. Since it's supposed to be a DR I think we should no longer
limit it to C++20.
P1957R2
* typeck2.c (check_narrowing): Consider T* to bool narrowing
in C++11 and up.
* g++.dg/cpp0x/initlist92.C: Don't expect an error in C++20 only.
Diffstat (limited to 'gcc/tree-ssa-operands.c')
0 files changed, 0 insertions, 0 deletions