<div dir="ltr">Hi,<div><br></div><div style>run into a weird error message when tried to compile a project...</div><div style><br></div><div style><div>tools/clang/include/clang/AST/DeclTemplate.h:560:22: error: </div><div>
      no matching constructor for initialization of 'SetIteratorType' (aka</div><div>      'FoldingSetVectorIterator<clang::FunctionTemplateSpecializationInfo,</div><div>      typename SmallVector<FunctionTemplateSpecializationInfo *, 8>::iterator>')</div>
<div>    SpecIterator() : SetIter() {}</div><div>                     ^</div><div style>Actually the user of the code is wrong to default construct for the iterator. But I think it would be more elegant to not declare default construtor, if the parent class does not have it. Namely the llvm::FoldingSetVectorIterator class does not have, therefore the clang::RedeclarableTemplateDecl::SpecIterator should not have either.</div>
<div style><br></div><div style>What do you think?</div><div style><br></div><div style>Regards,</div><div style>Laszlo</div></div></div>