Bug ID 16191
Summary LLDB fails to evaluate expressions that dereference a struct when inferior is built with recent Clang
Component All Bugs
Created attachment 10606 [details] expression evaluation log (failing) missing struct declaration This issue appears when using ToT Clang to build the LLDB test suite. The failure is reproducible in Test-rdar-9973865, either with the harness or manually. To reproduce with the test, do: python dotest --executable <path-to-lldb> -p Test-rdar-9973865 To reproduce manually: cd <lldb-dir>/test/functionalities/data-formatter/rdar-9973865 make CC=/path/to/recent/clang lldb ./a.out (lldb) b 27 (lldb) run (lldb) print *mine_ptr Expected result: lldb prints contents of the struct. Actual result: error: incomplete type 'summarize_t' (aka 'Summarize') where a complete type is required note: forward declaration of 'Summarize' error: 1 errors parsing expression However, the 'summarize_t' type is declared in the main.cpp file, but LLDB doesn't seem to pass this declaration on to Clang. Not sure if this is really an LLDB bug, or an Clang bug.