mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
cffe5fd7c98babd85acf86f3e7f8d02b04416ec2
The following testcase is incorrectly rejected, because since r15-6744 it adds build_nop to preserve the exact typedef type and cxx_eval_constant_expression can't fold NOP_EXPR from integer_zerop of one NULLPTR_TYPE to another NULLPTR_TYPE, while cxx_eval_constant_expression relies on fold to do such folding. I see 3 options to fix that, one is deal with this in the r15-6744 spot and special case NULLPTR_TYPE there and build_zero_cst instead of build_nop (with similar condition like in the patch below), another possibility is special case this in cxx_eval_constant_expression, and another one (done in this patch) is to handle this in fold-const.cc - fold_convert_loc and also in fold_convert_const. 2026-01-30 Jakub Jelinek <jakub@redhat.com> PR c++/123790 * fold-const.cc (fold_convert_const): Handle conversion of integer_zerop to NULLPTR_TYPE. (fold_convert_loc): Likewise. * g++.dg/cpp0x/nullptr47.C: New test.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.
Description
Languages
C++
30.8%
C
30.2%
Ada
14.4%
D
6.1%
Go
5.7%
Other
12.3%