There should be a way to poison a symbol only when it is used as a
function or
macro call. I suggest that following a symbol with a pair of
parentheses might
be a serviceable syntax for this. With this feature, the symbol
rindex would
still be usable for variables.
--
Summary: #pragma GNU poison index()
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Dave at Yost dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36906