User account creation filtered due to spam.

Bug 23999 - DECL_SIZE set to NULL at times
Summary: DECL_SIZE set to NULL at times
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2005-09-21 15:19 UTC by Daniel Berlin
Modified: 2006-05-30 03:07 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2006-05-30 03:07:17


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Berlin 2005-09-21 15:19:35 UTC
Inserting the following code into get_inner_reference before if (size_tree !=
0), causes bootstrap failures where DECL_SIZE is NULL but shouldn't be

gcc_assert (size_tree != 0 || (TREE_CODE (exp) != COMPONENT_REF  && TREE_CODE
(exp) != BIT_FIELD_REF));
Comment 1 Andrew Pinski 2005-09-25 04:38:20 UTC
The only time I am thinking this is NULL is when you have something like:
struct a
  int b[];
Comment 2 Andrew Pinski 2005-09-25 05:06:00 UTC
I think this is invalid because the testcase is what I thought it was:
   struct dwarf_cie {
    int i;
    unsigned char augmentation[];
int get_cie_encoding (const struct dwarf_cie *cie)
Comment 3 Andrew Pinski 2006-05-30 03:07:17 UTC
The other case I found (while creating a patch) is:
extern int a[];