[Bug c++/59659] large zero-initialized std::array compile time excessive
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 9 17:24:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59659
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> For the #c0 testcase, I think reduced testcase is:
> struct S { S (); S (int); ~S (); int i; };
> struct A { S s[1000000]; };
>
> void
> foo ()
> {
> A a = {{}};
> }
> and in that case we don't go through build_vec_init, but
> check_init_r/process_init_constructor etc.
Using (one hundred thousand) "struct A { S s[100000]; };" crashes gcc-4.7, 4.8
and trunk.
More information about the Gcc-bugs
mailing list