Example program: static int static_value = 0; int a_function_to_call() { static_value++; return static_value; } int main (int argc, char const *argv[]) { a_function_to_call(); return 0; } Compiling this as a c++ program with -O0 and -g and trying to call or print the function pointer 'a_function_to_call' fails. Output: (lldb) b main (lldb) r ... (lldb) expression a_function_to_call error: use of undeclared identifier 'a_function_to_call' error: 1 errors parsing expression (lldb) expression a_function_to_call() error: use of undeclared identifier 'a_function_to_call' error: 1 errors parsing expression
Committed a temporary workaround in r181613 that fixes the issue. It also fixed the same problem for anonymous namespace functions.
This issue also affects FreeBSD. The temporary workaround in r181613 has been extended to apply to FreeBSD as well (r190319)
Unable to reproduce. Marking it as RESOLVED.