Diagnostic 109: expression must have (pointer-to-) function type


Cause: 


This error is reported when the compiler sees a function call but the identifier in the
function call is not a function name or function pointer.


Example: 

void foo(void* p) {
    p();   // p is being called as if it were a function but it is not a function

}

> icl -c diag109.cpp
Intel® C++ Compiler Professional for applications running on IA-32, Version 11.1    Build 20090511 Package ID: w_cproc_p_11.1.035
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

diag109.cpp
diag109.cpp(2): error: expression must have (pointer-to-) function type
      p();
      ^

Resolution : 
Ensure there is no syntax error and the function prototype exists.

Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.