This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r278026 - in /trunk/gcc: cp/ChangeLog cp/typeck...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 10 Nov 2019 20:30:03 -0000
- Subject: r278026 - in /trunk/gcc: cp/ChangeLog cp/typeck...
Author: jason
Date: Sun Nov 10 20:30:03 2019
New Revision: 278026
URL: https://gcc.gnu.org/viewcvs?rev=278026&root=gcc&view=rev
Log:
Implement D1957R0, T* to bool should be considered narrowing.
This paper was delayed until the February meeting in Prague so that we could
get a better idea of what the impact on existing code would actually be. To
that end, I'm implementing it now.
* typeck2.c (check_narrowing): Treat pointer->bool as a narrowing
conversion with -std=c++2a.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/g++.dg/cpp0x/initlist92.C