diff options
author | Jason Merrill <jason@redhat.com> | 2010-06-29 20:51:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-06-29 20:51:44 -0400 |
commit | d758e847c4ce6eda350809463cd87307c7e9c19c (patch) | |
tree | 232413e607b8465ed633e240d607739a6cbba07c /gcc/c-parser.c | |
parent | 54ca9930b79c8f759919fdbe671ff24ce4141b0c (diff) | |
download | gcc-d758e847c4ce6eda350809463cd87307c7e9c19c.zip gcc-d758e847c4ce6eda350809463cd87307c7e9c19c.tar.gz gcc-d758e847c4ce6eda350809463cd87307c7e9c19c.tar.bz2 |
Enable implicitly declared move constructor/operator= (N3053).
gcc/cp/
* class.c (add_implicitly_declared_members): A class with no
explicitly declared copy or move constructor gets both declared
implicitly, and similarly for operator=.
(check_bases): A type with no copy ctor does not inhibit
a const copy ctor in a derived class.
(check_field_decl): Likewise.
(check_bases_and_members): A nonexistent copy ctor/op= is non-trivial.
* tree.c (type_has_nontrivial_copy_init): Adjust semantics.
(trivially_copyable_p): Likewise.
* call.c (convert_like_real): Use type_has_nontrivial_copy_init.
* class.c (finish_struct_bits): Likewise.
* tree.c (build_target_expr_with_type): Likewise.
* typeck2.c (store_init_value): Likewise.
libstdc++-v3/
* include/bits/unordered_map.h: Explicitly default copy constructors.
* include/bits/unordered_set.h: Likewise.
From-SVN: r161582
Diffstat (limited to 'gcc/c-parser.c')
0 files changed, 0 insertions, 0 deletions