This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ bug in __builtin_apply()



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);
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]