This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/83584] "ISO C forbids conversion of object pointer to function pointer type" -- no, not really
- From: "Keith.S.Thompson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Dec 2017 01:53:03 +0000
- Subject: [Bug c/83584] "ISO C forbids conversion of object pointer to function pointer type" -- no, not really
- Auto-submitted: auto-generated
- References: <bug-83584-4@http.gcc.gnu.org/bugzilla/>
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?