[PATCH] Bugfix in template instantiation.
Richard Smith
richard at metafoo.co.uk
Tue Oct 14 18:07:08 PDT 2014
This is the wrong fix. The bug is that `TreeTransform::RebuildCXXPseudoDestructorExpr` is building a bogus `CXXScopeSpec` here:
// The scope type is now known to be a valid nested name specifier
// component. Tack it on to the end of the nested name specifier.
if (ScopeType)
SS.Extend(SemaRef.Context, SourceLocation(),
ScopeType->getTypeLoc(), CCLoc);
If `ScopeType` is not a class type, we should reject it at this point.
http://reviews.llvm.org/D5769
More information about the cfe-commits
mailing list