From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9847 invoked by alias); 18 Sep 2007 11:58:34 -0000 Received: (qmail 9795 invoked by uid 48); 18 Sep 2007 11:58:24 -0000 Date: Tue, 18 Sep 2007 11:58:00 -0000 Message-ID: <20070918115824.9794.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/31863] [4.1/4.2/4.3 Regression] g++-4.1: out of memory with -O1/-O2 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-09/txt/msg01437.txt.bz2 ------- Comment #17 from rguenth at gcc dot gnu dot org 2007-09-18 11:58 ------- Note that the double virtual inheritance in the Serializer template creates the exponential behavior. You can fix this at the source level by instead doing template class Serializer >: public virtual Serializer { }; template class Serializer >: public virtual Serializer, public Serializer { }; template class Serializer : public virtual Factory { }; which also makes more sense(?). Back to marking this as possibly a C++ frontend bug - though I'm inclined to close this bug as INVALID. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |c++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31863