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] |
On Fri, 2009-01-09 at 16:12 -0500, Jason Merrill wrote:Steve Ellcey wrote:Yes, I agree with that change. But in this case we found a hidden name and we aren't in a local class, so the comment "A non namespace-scope binding can only be hidden if we are in a local class" is not quite right. Rather, it can only be hidden in the presence of a local class, but it can be found by lookups outside the local class, as in the testcase.I am not sure the comment is wrong, it is just a question of what to do when faced with an illegal program. Currently we ICE and with my change we return NULL which allows the compiler to generate error messages.
But the test case is not a legal C++ program. So isn't the comment still true for legal C++ programs?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |