From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23418 invoked by alias); 30 Jan 2004 13:05:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23355 invoked by uid 48); 30 Jan 2004 13:05:02 -0000 Date: Fri, 30 Jan 2004 13:05:00 -0000 Message-ID: <20040130130502.23354.qmail@sources.redhat.com> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040127160757.13886.david.balazic@hermes.si> References: <20040127160757.13886.david.balazic@hermes.si> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13886] Compiler crash on deeply nested template X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03860.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-01-30 13:04 ------- David, ISO C++ says that a compliant C++ compile must implement at least 17 recursive levels for template instantiation. We do keep a default limit around 500 for a good reason, which is trying not to break stack or memory limits. By the look of your error logs, GCC instantiate about 3300 templates before dieing. There is no way you will ever be able to compile such a program on any C++ compiler on earth. If you do, you can as well try recompiling G++ with a larger stack size. Besides, the problem is *PURELY* academic, since no real-world code will ever look like that. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13886