if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) {
DeclSpec DS(AttrFactory);
- SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
+ ParseDecltypeSpecifier(DS);
if (DS.getTypeSpecType() == TST_error)
return ExprError();
return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc,
if (!Folded || !AllowFold) {
Diag(E->getSourceRange().getBegin(),
- DiagID ? DiagID : diag::err_expr_not_ice) << E->getSourceRange();
+ DiagID ? DiagID : unsigned(diag::err_expr_not_ice))
+ << E->getSourceRange();
// We only show the notes if they're not the usual "invalid subexpression"
// or if they are actually in a subexpression.