aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-04-23 08:28:58 -0400
committerPatrick Palka <ppalka@redhat.com>2021-04-23 08:28:58 -0400
commit5f8aed72e76970d2c6fa06fb23fdaa47660555b0 (patch)
tree17888290d6de3fa35ec098cd55538bf4b16366ba /gcc/tree-complex.c
parent35b2be219fc1934ae040d045e355680a83d839c4 (diff)
downloadgcc-5f8aed72e76970d2c6fa06fb23fdaa47660555b0.zip
gcc-5f8aed72e76970d2c6fa06fb23fdaa47660555b0.tar.gz
gcc-5f8aed72e76970d2c6fa06fb23fdaa47660555b0.tar.bz2
c++: Refine enum direct-list-initialization [CWG2374]
This implements the wording changes of CWG2374, which clarifies the wording of P0138 to forbid e.g. direct-list-initialization of a scoped enumeration from a different scoped enumeration. gcc/cp/ChangeLog: DR 2374 * decl.c (is_direct_enum_init): Check the implicit convertibility requirement added by CWG 2374. gcc/testsuite/ChangeLog: DR 2374 * g++.dg/cpp1z/direct-enum-init2.C: New test.
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions