[Bug libstdc++/69769] arithmetic operation on pointer to a function
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 19 02:26:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69769
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jwakely.gcc at gmail dot com,
| |msebor at gcc dot gnu.org
Component|c++ |libstdc++
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The <atomic> header is part of libstdc++ so setting Component to it. I agree
that this should be rejected but I'm not sure that this isn't actually a defect
in the standard. AFAICS, the partial specializations of atomic for pointers
don't say that function pointers should be treated differently than object
pointers. Jonathan, is there an issue on this (I may have overlooked int)?
More information about the Gcc-bugs
mailing list