From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14907 invoked by alias); 31 Jul 2002 17:06: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 14890 invoked by uid 71); 31 Jul 2002 17:06:01 -0000 Resent-Date: 31 Jul 2002 17:06:01 -0000 Resent-Message-ID: <20020731170601.14888.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, stm@bigfoot.de Received: (qmail 14305 invoked by uid 61); 31 Jul 2002 17:03:35 -0000 Message-Id: <20020731170335.14304.qmail@sources.redhat.com> Date: Wed, 31 Jul 2002 10:06:00 -0000 From: stm@bigfoot.de Reply-To: stm@bigfoot.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/7456: #243 gcc2.96 - template problems X-SW-Source: 2002-07/txt/msg00814.txt.bz2 List-Id: >Number: 7456 >Category: target >Synopsis: #243 gcc2.96 - template problems >Confidential: no >Severity: serious >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jul 31 10:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: stm@bigfoot.de >Release: gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk) >Organization: >Environment: Linux PC PIII >Description: Don't look at the usefullness of the code, its wrong anyway. But the compiler can not report the mistake here. bug.cc:10: Internal error #243. bug.cc:10: confused by earlier errors, bailing out (the mistake is of course in line 20/21.) >How-To-Repeat: gcc bug.cc >Fix: not a fix, but a workaround (problem may be to find the place where you made a mistake in the code you compile) - by correct use of template function (see comment in file), then it reports a normal compiler error - not using an array reference/pointer as parameter of the function definition produces also a normal compiler error >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="bug.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug.cc" CgpjbGFzcyBYCnsKcHVibGljOgogIHZvaWQgbWV0aG9kKCk7Cn07Cgp0ZW1wbGF0ZSA8aW50IEgs IGludCBXPiB2b2lkIGZ1bmN0aW9uKGludCAoJndtYXJrZXIpW0hdW1ddKQp7Cn07Cgp2b2lkIFg6 Om1ldGhvZCgpCnsKICBpbnQgaCA9IDIyOwogIGludCB3ID0gMTg7CgogIGludCBhcnJheVtoXVt3 XTsKCiAgLy9mdW5jdGlvbjwyMiwxOD4oYXJyYXkpOwogIGZ1bmN0aW9uKGFycmF5KTsKfQoK