From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30051 invoked by alias); 13 Sep 2008 03:54:02 -0000 Received: (qmail 29698 invoked by uid 48); 13 Sep 2008 03:52:41 -0000 Date: Sat, 13 Sep 2008 03:54:00 -0000 Message-ID: <20080913035241.29697.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/37500] [4.4 Regression] libstdc++ failed to compile at -O0 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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: 2008-09/txt/msg01530.txt.bz2 ------- Comment #5 from pinskia at gcc dot gnu dot org 2008-09-13 03:52 ------- Here is a reduced testcase for the variadic-tuple.C failure. Compile with --param ggc-min-expand=0 --param ggc-min-heapsize=0 -w: namespace std __attribute__ ((__visibility__ ("default"))) { template class basic_string; typedef basic_string string; template struct basic_string { void _M_destroy() throw(); basic_string(const char* __s); ~basic_string() { _M_destroy(); } }; template void basic_string<_CharT>:: _M_destroy() throw () { } extern template class basic_string; }; template class tuple; template<> class tuple<> { }; template struct tuple : private tuple { typedef tuple inherited; tuple() { } template tuple(const tuple& other) : m_head(other.head()) ,inherited(other.tail()) { } const Head &head() const { } const inherited& tail() const { } Head m_head; }; int main() { tuple t3a; tuple t3b(t3a); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37500