aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/symbol.c
diff options
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/symbol.c b/symbol.c
index 116b1040..90149e5a 100644
--- a/symbol.c
+++ b/symbol.c
@@ -436,10 +436,11 @@ static struct symbol *examine_enum_type(struct symbol *sym)
static struct symbol *examine_pointer_type(struct symbol *sym)
{
/*
- * We need to set the pointer size first, and
- * examine the thing we point to only afterwards.
- * That's because this pointer type may end up
- * being needed for the base type size evaluation.
+ * Since pointers to incomplete types can be used,
+ * for example in a struct-declaration-list,
+ * the base type must *not* be examined here.
+ * It thus means that it needs to be done later,
+ * when the base type of the pointer is looked at.
*/
if (!sym->bit_size)
sym->bit_size = bits_in_pointer;