summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-06 01:42:00 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-06 01:42:00 +0000
commit5dafebc89f1c662c55aef4621a9a071b0e7ee3b9 (patch)
tree138b369d7237eade0d4a8dc82e665a2e0656e31f /clang/lib/Parse/ParseDecl.cpp
parentf9ad245c900d0c964be7ef0972b5465db0a2ae5f (diff)
downloadbcm5719-llvm-5dafebc89f1c662c55aef4621a9a071b0e7ee3b9.tar.gz
bcm5719-llvm-5dafebc89f1c662c55aef4621a9a071b0e7ee3b9.zip
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. llvm-svn: 130974
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index a20e90bd0ea..a4c323979d4 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud