When creating the declaration reference for implicit copy-construction

of a base class, give it real source-location information. Fixes PR7017.

llvm-svn: 102916
This commit is contained in:
Douglas Gregor 2010-05-03 15:43:53 +00:00
parent 5cf8d67bc9
commit ed088b7fe7
1 changed files with 1 additions and 1 deletions

View File

@ -1501,7 +1501,7 @@ BuildImplicitBaseInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor,
Expr *CopyCtorArg =
DeclRefExpr::Create(SemaRef.Context, 0, SourceRange(), Param,
SourceLocation(), ParamType, 0);
Constructor->getLocation(), ParamType, 0);
// Cast to the base class to avoid ambiguities.
QualType ArgTy =