We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c468479 + c497bab commit 8167476Copy full SHA for 8167476
lib/ClangImporter/ImportDecl.cpp
@@ -2710,13 +2710,13 @@ namespace {
2710
ctorUsingShadowDecl->getTargetDecl());
2711
if (!baseCtorDecl || baseCtorDecl->isDeleted())
2712
continue;
2713
+ auto loc = ctorUsingShadowDecl->getLocation();
2714
+
2715
auto derivedCtorDecl = clangSema.findInheritingConstructor(
- clang::SourceLocation(), baseCtorDecl,
- ctorUsingShadowDecl);
2716
+ loc, baseCtorDecl, ctorUsingShadowDecl);
2717
if (!derivedCtorDecl->isDefined() &&
2718
!derivedCtorDecl->isDeleted())
- clangSema.DefineInheritingConstructor(
2719
- clang::SourceLocation(), derivedCtorDecl);
+ clangSema.DefineInheritingConstructor(loc, derivedCtorDecl);
2720
}
2721
2722
0 commit comments