forked from OSchip/llvm-project
parent
80cfdd6b56
commit
017542dd3e
|
@ -4295,7 +4295,7 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
|
||||||
<< T << D.getSourceRange();
|
<< T << D.getSourceRange();
|
||||||
D.setInvalidType(true);
|
D.setInvalidType(true);
|
||||||
} else if (D.getName().getKind() ==
|
} else if (D.getName().getKind() ==
|
||||||
UnqualifiedId::IK_DeductionGuideName) {
|
UnqualifiedId::IK_DeductionGuideName) {
|
||||||
if (T != Context.DependentTy) {
|
if (T != Context.DependentTy) {
|
||||||
S.Diag(D.getDeclSpec().getLocStart(),
|
S.Diag(D.getDeclSpec().getLocStart(),
|
||||||
diag::err_deduction_guide_with_complex_decl)
|
diag::err_deduction_guide_with_complex_decl)
|
||||||
|
|
Loading…
Reference in New Issue