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]

Re: C++ bug in __builtin_apply()


> The following compiles under gcc, but results in the following error
> under g++:

Thanks for your bug report. I've put it into GNATS. Please note that
mainline g++ (2.96 20000302 (experimental)) will accept the code

extern void fn1();
void fn (int b){
        __builtin_apply( (void (*)(...))fn1,
                         __builtin_apply_args(),
                         32);
}

instead, which would still be a bug, perhaps in the documentation.

Regards,
Martin

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