This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [C++ PATCH] Hide __for_{range,begin,end} symbols (PR c++/85515)


On Tue, Jul 3, 2018 at 11:43 AM Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Tue, Jul 03, 2018 at 11:34:51AM +0200, Richard Biener wrote:
> > Can we make them DECL_ARTIFICIAL and/or make name-lookup never
>
> They are DECL_ARTIFICIAL already.
>
> > lookup DECL_ARTIFICIAL vars instead?
>
> Not sure about that, will try to gather some statistics on how often we
> rely on name-lookup of DECL_ARTIFICIALs.

Hmm, we might indeed.  At least we should make sure those
cases never have valid identifiers?  Or is the implementation
allowed to "hide" user identifiers in the implementation namespace?
Like the __for_begin one might hide a user defined variable.

Richard.

>         Jakub


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