From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18690 invoked by alias); 25 Aug 2002 22:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18668 invoked by uid 71); 25 Aug 2002 22:56:01 -0000 Resent-Date: 25 Aug 2002 22:56:01 -0000 Resent-Message-ID: <20020825225601.18667.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, hg211@ural2.hszk.bme.hu Received: (qmail 14411 invoked by uid 61); 25 Aug 2002 22:48:42 -0000 Message-Id: <20020825224842.14410.qmail@sources.redhat.com> Date: Sun, 25 Aug 2002 17:36:00 -0000 From: hg211@ural2.hszk.bme.hu Reply-To: hg211@ural2.hszk.bme.hu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7718: 'complex' template instantiation causes internal compiler error (gcc 3.1, gcc 3.2) X-SW-Source: 2002-08/txt/msg00540.txt.bz2 List-Id: >Number: 7718 >Category: c++ >Synopsis: 'complex' template instantiation causes internal compiler error (gcc 3.1, gcc 3.2) >Confidential: no >Severity: serious >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Aug 25 15:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Herman Geza >Release: gcc version 3.2 20020809 (Debian prerelease) >Organization: >Environment: i386/Linux, AMD Athlon >Description: If you give a template function as a parameter to a template class, and call this template function in a template class-function (it's hard to describe) gcc 3.1.1 and gcc 3.2 stops with 't.cpp:19: Internal compiler error in tsubst_decl, at cp/pt.c:5648' Try the attached simple cpp file. If the default_initializer template function is a simple non-template function, then the sample compiles. >How-To-Repeat: compile the sample with 'g++ t.cpp -c' >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="t.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="t.cpp" dGVtcGxhdGUgPHR5cGVuYW1lIE9CSkVDVD4Kdm9pZCBkZWZhdWx0X2luaXRpYWxpemVyKGNvbnN0 IE9CSkVDVCAmKSB7IH0KCi8vdm9pZCBkZWZhdWx0X2luaXRpYWxpemVyKGNvbnN0IGludCAmKSB7 IH0KCnRlbXBsYXRlIDx0eXBlbmFtZSBPQkpFQ1QsIHZvaWQgaW5pdF9mdW5jdGlvbihjb25zdCBP QkpFQ1QgJik+CmNsYXNzIGNDb250YWluZXIgewoJcHVibGljOgoJCXRlbXBsYXRlIDx0eXBlbmFt ZSBJTklUSUFMSVpFUj4KCQl2b2lkIEFkZChjb25zdCBJTklUSUFMSVpFUiAmaW5pdGlhbGl6ZXIp IHsKCQkJaW5pdF9mdW5jdGlvbihpbml0aWFsaXplcik7CgkJfQp9OwoKaW50IG1haW4oKSB7Cglj Q29udGFpbmVyPGludCwgZGVmYXVsdF9pbml0aWFsaXplcjxpbnQ+ID4gYzsKCS8vY0NvbnRhaW5l cjxpbnQsIGRlZmF1bHRfaW5pdGlhbGl6ZXIgPiBjOwoKCWMuQWRkPGludD4oNDIpOwoKCXJldHVy biAwOwp9Cg==