[Bug 20781] LLDB asserts "Cannot get layout of forward declarations!" from RecordLayoutBuilder.cpp:2782

Jonas Devlieghere changed bug 20781

What Removed Added
Status NEW RESOLVED
CC jdevlieghere@apple.com
Resolution FIXED

Comment # 4 on bug 20781 from Jonas Devlieghere

jonas@devlieghere /tmp> lldb test2.so
(lldb) target create "test2.so"
Current executable set to 'test2.so' (x86_64).
(lldb) p (bar_t*)0
error: test2.so DWARF DIE at 0x0000003e (class bar) has a member variable
0x00000046 (foo) whose type is a forward declaration, not a complete
definition.
Try compiling the source file with -fstandalone-debug
(bar_t *) $0 = 0x0000000000000000