From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9500 invoked by alias); 23 Apr 2002 23:46:08 -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 9461 invoked by uid 71); 23 Apr 2002 23:46:04 -0000 Resent-Date: 23 Apr 2002 23:46:04 -0000 Resent-Message-ID: <20020423234604.9457.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, colin@field.medicine.adelaide.edu.au Received:(qmail 9382 invoked from network); 23 Apr 2002 23:45:56 -0000 Received: from unknown (HELO sharedtech.dyndns.org) (203.45.106.209) by sources.redhat.com with SMTP; 23 Apr 2002 23:45:56 -0000 Received: from colin.sharedtech.dyndns.org (colin.sharedtech.dyndns.org [192.168.1.1]) by sharedtech.dyndns.org (Postfix) with ESMTP id E7E6175E87 for ; Wed, 24 Apr 2002 09:45:54 +1000 (EST) Received: by colin.sharedtech.dyndns.org (Postfix, from userid 1000) id 8F39C2F039; Wed, 24 Apr 2002 09:43:04 +1000 (EST) Message-Id:<20020423234304.8F39C2F039@colin.sharedtech.dyndns.org> Date: Tue, 23 Apr 2002 16:46:00 -0000 From: colin@field.medicine.adelaide.edu.au To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/6432: __builtin_apply() rejected by g++ - per PR 102 X-SW-Source: 2002-04/txt/msg01231.txt.bz2 List-Id: >Number: 6432 >Category: c++ >Synopsis: __builtin_apply() rejected by g++ - per PR 102 >Confidential: no >Severity: critical >Priority: high >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Apr 23 16:46:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Colin McCormack >Release: gcc version 2.95.4 20011002 (Debian prerelease) >Organization: >Environment: System: Linux colin.sharedtech.dyndns.org 2.4.18-686 #2 Wed Mar 20 20:21:31 EST 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu >Description: g++ rejects all possible constructions of __builtin_apply() by requiring the second argument to be of an impossible type, with an error: argument passing to `void * ()(unsigned int)' from `void *'. Please note the impossible type `void * () (unsigned int)' >How-To-Repeat: run g++ over the following code: ---- extern void fn1(); void fn (int b){ __builtin_apply( (void (*)())fn1, __builtin_apply_args(), 32); } ---- NB: this bug was reported in Problem Report 102 on March 12th 2000, and was closed in error. The bug is, and has been, causing my GPL'd project a great deal of difficulty, and its fix should be straight forward. >Fix: There is no fix or workaround possible within g++ >Release-Note: >Audit-Trail: >Unformatted: