C++ bug in __builtin_apply()
colin@field.medicine.adelaide.edu.au
colin@field.medicine.adelaide.edu.au
Sun Mar 12 05:50:00 GMT 2000
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);
}
More information about the Gcc-bugs
mailing list