GCC 6 symbol poisoning and c++ header usage is fragile

Jonathan Wakely jwakely.gcc@gmail.com
Thu Apr 21 17:04:00 GMT 2016

On 21 April 2016 at 17:47, Jason Merrill 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.

I've created https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70757

More information about the Gcc mailing list