diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-15 04:39:51 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-15 04:39:51 +0000 |
| commit | b9e90b13cfd73f5f3e0db9bb05c234f9fcb66748 (patch) | |
| tree | 854195571760870974ca983f610698c99e944913 /clang/test/SemaCXX/PR10243.cpp | |
| parent | cf434ee4c18e83491568ff32ff9a8a78a972c190 (diff) | |
| download | bcm5719-llvm-b9e90b13cfd73f5f3e0db9bb05c234f9fcb66748.tar.gz bcm5719-llvm-b9e90b13cfd73f5f3e0db9bb05c234f9fcb66748.zip | |
Fold the six functions checking explicitly-defaulted special member functions
into one. These were all performing almost identical checks, with different bugs
in each of them.
This fixes PR12806 (we weren't setting the exception specification for an
explicitly-defaulted, non-user-provided default constructor) and enforces
8.4.2/2's rule that an in-class defaulted member must exactly match the implicit
parameter type.
llvm-svn: 156802
Diffstat (limited to 'clang/test/SemaCXX/PR10243.cpp')
| -rw-r--r-- | clang/test/SemaCXX/PR10243.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/PR10243.cpp b/clang/test/SemaCXX/PR10243.cpp index 129ff80e2d2..19a8b04e84f 100644 --- a/clang/test/SemaCXX/PR10243.cpp +++ b/clang/test/SemaCXX/PR10243.cpp @@ -9,12 +9,12 @@ struct T0 { struct T1 { S s; // expected-error{{field has incomplete type 'S'}} - T1(T1&) = default; + T1(const T1&) = default; }; struct T2 { S s; // expected-error{{field has incomplete type 'S'}} - T2& operator=(T2&) = default; + T2& operator=(const T2&) = default; }; struct T3 { |

