This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ bug in __builtin_apply()
- To: gcc-bugs at gcc dot gnu dot org
- Subject: C++ bug in __builtin_apply()
- From: colin at field dot medicine dot adelaide dot edu dot au
- Date: Mon, 13 Mar 2000 00:49:57 +1100
- Reply-To: colin at field dot medicine dot adelaide dot edu dot au
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);
}