With current svn head, as well as gcc-4.1.0, the testcase g++.dg/init/array15.C uses 4MB of stack space for a temporary on the stack in the "foo" constructor. This is a regression, as it did not happen with older compilers - 3.4.x calls memset directly on the object, rather than doing a memset/memcpy combination.
The problem happens both with a native i686-linux compiler as well as with a bfin-uclinux targetted compiler. -- Summary: g++.dg/init/array15.C uses 4MB stack space Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bernds_cb1 at t-online dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27620