On Thu, Sep 17, 2020 at 11:43 PM Richard Biener via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> On Fri, Sep 18, 2020 at 5:20 AM Jason Merrill via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
> >
> > Martin's -Wplacement-new patch ran into a problem with DECL_SIZE not being
> > set on an extern variable for which the type was not complete until after
> > its declaration.  complete_vars was deliberately not calling layout_decl for
> > some reason, instead leaving that for expand_expr_real_1 much later in the
> > compilation.  But if we layout decls at declaration time, I don't see any
> > reason we shouldn't lay them out here, when their type is newly complete.
> >
> > Tested x86_64-pc-linux-gnu, applying to trunk.
>
> Seems to break bootstrap in stage2,
>
> /home/rguenther/src/trunk/gcc/dumpfile.c:169:33: error: storage size
> of 'optgroup_options' isn't known
>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97118


-- 
H.J.

Reply via email to