This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: another effc++ spurious warning?


Nathan Myers:

> We already have a feature to prevent warnings originating from system
> headers.  Why does it fail in this case?

I believe I have an idea about the answer.

<theory>
  This can happen only for template instantiations.

  When we instantiate templates, we create new nodes in the
  contexts of instantiations, those contexts are not in the
  system headers, but somewhere in user codes.  And we do not
  copy the bit saying that the decl is in a system header.
  Therefore the warnings get out.
</theory>

Someone has to check that theory.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]