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] for c++/52465


On 04/10/2012 04:23 PM, Fabien Chêne wrote:
Ah yes, that's slightly better.
(I've kept the NULL check in strip_using_decl, it seems safer to me.
Just tell me if you prefer not)
Tested x86_64-unkown-linux-gnu. OK for trunk and 4.7 ?

2012-03-08 Fabien Chêne<fabien@gcc.gnu.org>

        PR c++/52465
        * decl.c (grokdeclarator): Call strip_using_decl.
        * parser.c (cp_parser_class_name): Call strip_using_decl and
        perform some checks on the target decl.
        * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl
        to be stripped is NULL_TREE.
        (qualify_lookup): Call strip_using_decl and perform some checks on
        the target decl.

Your ChangeLog needs to be adjusted. :)


The patch is OK, thanks!

Jason


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