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]
Other format: [Raw text]

[Bug c/83584] "ISO C forbids conversion of object pointer to function pointer type" -- no, not really


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83584

--- Comment #4 from Keith Thompson <Keith.S.Thompson at gmail dot com> ---
I'm aware that the standard has not changed in this area from C90 to C99
to C11.  The conversion is undefined behavior, not a constraint violation,
in all three editions.

If the conversion is forbidden, what syntax rule or constraint does
it violate?

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