http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53433

--- Comment #27 from Markus Trippelsdorf <markus at trippelsdorf dot de> 
2012-07-04 11:53:56 UTC ---
(In reply to comment #25)
> So, does
> 
> Index: gimple-fold.c
> ===================================================================
> --- gimple-fold.c       (revision 189251)
> +++ gimple-fold.c       (working copy)
> @@ -2713,6 +2713,8 @@ get_base_constructor (tree base, HOST_WI
>        if (!DECL_INITIAL (base)
>           && (TREE_STATIC (base) || DECL_EXTERNAL (base)))
>          return error_mark_node;
> +      if (DECL_INITIAL (base) == error_mark_node)
> +       return NULL_TREE;
>        return DECL_INITIAL (base);
> 
>      case ARRAY_REF:
> 
> fix it?

Yes! 
At least gcc builds now without errors.
(I didn't run the test-suite yet)

Reply via email to