GCC 6 symbol poisoning and c++ header usage is fragile
Jason Merrill
jason@redhat.com
Thu Apr 21 16:55:00 GMT 2016
On Thu, Apr 21, 2016 at 12:47 PM, Jason Merrill <jason@redhat.com> wrote:
> On Thu, Apr 21, 2016 at 11:57 AM, Jonathan Wakely <jwakely.gcc@gmail.com>
> wrote:
>>
>> I once tried to write a gcc plugin that would check all names defined
>> by libstdc++ and ensure they were either in the reserved namespace, or
>> were in a whitelist of allowed names defined by the standard (such as
>> "istream" and "read"). It didn't work because gcc plugins don't run
>> early enough, so macros and uninstantiated templates are never seen by
>> the plugin.
>
>
> Then let's add plugin callbacks to make that possible.
Jason
More information about the Gcc
mailing list