diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-07-09 09:37:16 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-07-09 09:38:50 +0200 |
commit | 8eab5064d54f41054b6a50d233a1a78a935b1c2a (patch) | |
tree | 47d8806cafdbbc96041821444d9abe4b6008dc26 /gcc/common | |
parent | 23ab7f632f4f5bae67fb53cf7b18fea7ba7242c4 (diff) | |
download | gcc-8eab5064d54f41054b6a50d233a1a78a935b1c2a.zip gcc-8eab5064d54f41054b6a50d233a1a78a935b1c2a.tar.gz gcc-8eab5064d54f41054b6a50d233a1a78a935b1c2a.tar.bz2 |
c++: Implement C++26 CWG2819 - Allow cv void * null pointer value conversion to object types in constant expressions
The following patch implements CWG2819 (which wasn't a DR because
it changes behavior of C++26 only).
2024-07-09 Jakub Jelinek <jakub@redhat.com>
* constexpr.cc (cxx_eval_constant_expression): CWG2819 - Allow
cv void * null pointer value conversion to object types in constant
expressions.
* g++.dg/cpp26/constexpr-voidptr3.C: New test.
* g++.dg/cpp0x/constexpr-cast2.C: Adjust expected diagnostics for
C++26.
* g++.dg/cpp0x/constexpr-cast4.C: Likewise.
Diffstat (limited to 'gcc/common')
0 files changed, 0 insertions, 0 deletions