Don't discard increment/decrement on function pointers. It's kind of

difficult to come up with a testcase because the code generation for this
construct is broken.

llvm-svn: 66325
This commit is contained in:
Eli Friedman 2009-03-07 07:01:10 +00:00
parent 52b696c7ad
commit 7c22c9dcdd
1 changed files with 0 additions and 1 deletions

View File

@ -3554,7 +3554,6 @@ QualType Sema::CheckIncrementDecrementOperand(Expr *Op, SourceLocation OpLoc,
Diag(OpLoc, diag::ext_gnu_ptr_func_arith)
<< ResType << Op->getSourceRange();
return QualType();
} else {
DiagnoseIncompleteType(OpLoc, PT->getPointeeType(),
diag::err_typecheck_arithmetic_incomplete_type,