On 07/19/2012 03:35 AM, Jason Merrill wrote:
On 07/12/2012 07:06 PM, Jason Merrill wrote:
I notice that your patch changes the behavior of C++98/03 mode as well,
which seems wrong to me; I think this is a big enough change that we
should limit it to C++11 mode.
...except that I can't figure out what the semantics before this DR
were really supposed to be; G++, EDG and Clang all handle this stuff
differently. After poking at it for a while I think the only sensible
thing is to have C++03 work the same as C++11. I've done that, and
I'm going to check in the full patch.
The first attachment is the full patch; the second is the changes
relative to your earlier patch. I changed tf_error to
tf_warning_or_error, went back to treating C++03 and C++11 the same,
made the FNDECL_RECHECK_ACCESS_P change I mentioned, and streamlined
LOOKUP_SPECULATIVE handling.
Thanks A LOT!
Cheers,
Paolo.