diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-23 21:01:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-23 21:01:39 +0000 |
commit | f071e9b173dbaf97b00849c309a97c5aa3c49ae9 (patch) | |
tree | e8897a254a522a6bd99f0566842ea497f5e251f5 /lib/Sema/SemaExprCXX.cpp | |
parent | 2cf719c3c3d805f630dfc6b1255e52647820888e (diff) |
Diagnose misuse of '.*' and '->*' operators during parse
instead of crashing in code gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index ee19ff6b84..6f26ea1eee 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -212,7 +212,7 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep, PDiag(diag::err_invalid_incomplete_type_use) << FullRange)) return ExprError(); - + if (RequireNonAbstractType(TyBeginLoc, Ty, diag::err_allocation_of_abstract_type)) return ExprError(); |