This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/102: Re: C++ bug in __builtin_apply()
- To: gcc-gnats at sourceware dot cygnus dot com
- Subject: c++/102: Re: C++ bug in __builtin_apply()
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 12 Mar 2000 19:26:53 +0100
- References: <20000312134957.506922F02A@sharedtech.eyep.net>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, colin at field dot medicine dot adelaide dot edu dot au
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
Note: There was a bad value `rejects-legal-code' for the field `>Class:'.
It was set to the default value of `sw-bug'.
>Number: 102
>Category: c++
>Synopsis: C++ bug in __builtin_apply()
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: analyzed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 12 10:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: colin@field.medicine.adelaide.edu.au
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Date: Mon, 13 Mar 2000 00:49:57 +1100
Original-Message-Id: <20000312134957.506922F02A@sharedtech.eyep.net>
The following compiles under gcc, but results in the following error under g++:
Errors:
g++ -o apply1 apply1.c
apply1.c: In function `void fn(int)':
apply1.c:5: argument passing to `void * ()(unsigned int)' from `void *'
Code:
extern void fn1();
void fn (int b){
__builtin_apply( (void (*)())fn1,
__builtin_apply_args(),
32);
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: