From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24692 invoked by alias); 3 Dec 2011 03:53:34 -0000 Received: (qmail 24682 invoked by uid 22791); 3 Dec 2011 03:53:33 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Dec 2011 03:53:21 +0000 From: "patrick.marlier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/48075] infinite loop when compiling Date: Sat, 03 Dec 2011 03:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick.marlier at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2011-12/txt/msg00222.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48075 --- Comment #4 from Patrick Marlier 2011= -12-03 03:53:02 UTC --- Created attachment 25976 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25976 reduced and without transaction relaxed I am hesitating to mark it as invalid since limiting the template-depth see= ms to show the error. I let C++ guru if they think it is invalid (limit depth = to 4 but it is quadratic expansion). Patrick Marlier. $ g++ inf.C -O0 -ftemplate-depth=3D4 inf.C:7:31: error: template instantiation depth exceeds maximum of 4 (use -ftemplate-depth=3D to increase the maximum) instantiating =E2=80=98class list::Building*, allocator::Building*> >::Building*, allocator::Building*, allocator::Building*> >::Building*> >::Building*, allocator::Building*, allocator::Building*> >::Building*, allocator::Building*, allocator::Building*> >::Building*> >::Building*> >::Building*, allocator::Building*, allocator::Buildin= g*> >::Building*, allocator::Building*, allocator::Building*> >::Building*> >::Building*, allocator::Building*, allocator::Building*> >::Building*, allocator::Building*, allocator::Building*> >::Building*> >::Building*> >::Building*> >= =E2=80=99 inf.C:7:31: recursively required from =E2=80=98class list::Buil= ding*, allocator::Building*> >=E2=80=99 inf.C:7:31: required from =E2=80=98class list=E2=80=99 inf.C:12:12: required from here