diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-26 19:00:16 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-26 19:00:16 +0000 |
commit | de8e63fd00e24e58a5ca05007cf7954916a6e6b9 (patch) | |
tree | 22c0af7e8297cc9933e3832492bd5433ba61174f /include/clang | |
parent | 26346fbcb9bb9fe7a6374e84eb994e8743e65327 (diff) | |
download | clang-de8e63fd00e24e58a5ca05007cf7954916a6e6b9.tar.gz |
P1008R1 Classes with user-declared constructors are never aggregates in
C++20.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 6f0014ce18..5ec3e5ceae 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1872,6 +1872,9 @@ def err_reference_bind_init_list : Error< def err_init_list_bad_dest_type : Error< "%select{|non-aggregate }0type %1 cannot be initialized with an initializer " "list">; +def warn_cxx2a_compat_aggregate_init_with_ctors : Warning< + "aggregate initialization of type %0 with user-declared constructors " + "is incompatible with C++2a">, DefaultIgnore, InGroup<CXX2aCompat>; def err_reference_bind_to_bitfield : Error< "%select{non-const|volatile}0 reference cannot bind to " |