diff options
author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-06 01:42:00 +0000 |
---|---|---|
committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-06 01:42:00 +0000 |
commit | fe2695eec167b28578825576863228f86b392f24 (patch) | |
tree | 74e67eb09b681ca0d1d28c1b4637dc5faa2055d9 /lib/Parse/ParseDecl.cpp | |
parent | 5f802e51406664ca9b6e0d57fc7ce37ea97a1c65 (diff) |
Do defaulted constructors properly.
Explictly defaultedness is correctly reflected on the AST, but there are
no changes to how that affects the definition of functions or much else
really.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index a20e90bd0e..a4c323979d 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -966,6 +966,10 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D, Diag(DelLoc, diag::warn_deleted_function_accepted_as_extension); Actions.SetDeclDeleted(ThisDecl, DelLoc); + } else if (Tok.is(tok::kw_default)) { + SourceLocation DefLoc = ConsumeToken(); + + Diag(DefLoc, diag::err_default_special_members); } else { if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { EnterScope(0); |