[Bug preprocessor/36906] #pragma GNU poison index()
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 2 19:23:00 GMT 2008
------- Comment #3 from tromey at gcc dot gnu dot org 2008-09-02 19:22 -------
One problem with this approach is that this code would not error:
#include <string.h>
char (*fnptr)() = rindex;
I tend to agree with Andrew -- poisoning is too crude a tool for this use.
Is there a reason you do not use deprecation here?
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36906
More information about the Gcc-bugs
mailing list