From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18323 invoked by alias); 17 May 2010 17:47:23 -0000 Received: (qmail 18250 invoked by uid 48); 17 May 2010 17:46:53 -0000 Date: Mon, 17 May 2010 17:47:00 -0000 Message-ID: <20100517174653.18249.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/44172] Compiling never ends In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dougsemler at gmail dot com" 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: 2010-05/txt/msg01823.txt.bz2 ------- Comment #1 from dougsemler at gmail dot com 2010-05-17 17:46 ------- This is the offender: Node(const T& v,Node Tparent=NULL) {_parent=Tparent;_data=v;} It looks like you have transposed the *> (it should be the following, right? Node(const T& v,Node* Tparent=NULL) {_parent=Tparent;_data=v;} Every iteration of this is producing a new template instantiation attempt (recursively). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44172