On 07/17/2011 01:01 AM, Ed Smith-Rowland wrote:
On 07/12/2011 04:56 PM, Jason Merrill wrote:
Doesn't the shadowing apply everywhere, not just at file scope?
Yes, the shadowing should apply everywhere. What test do I use to get that?
I seem to remember trying something like global_p without success.

I was thinking just drop the checks of CP_DECL_CONTEXT and DECL_NAMESPACE_SCOPE_P.

Now maybe I should use a *second* local variable, say curr_type, for the
current fragment.

That works.

Rather than check lang == CXX0X or GNUCXX0X in libcpp, let's add a C++0x flag.
Where would you add the flag?  cpp_token?

In lang_flags in libcpp/init.c, like the c99 flag.

Jason

Reply via email to