]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL to cp_finish_decl.
authorJason Merrill <jason@redhat.com>
Wed, 21 Jul 2010 14:37:56 +0000 (10:37 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 21 Jul 2010 14:37:56 +0000 (10:37 -0400)
* parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
to cp_finish_decl.

From-SVN: r162377

gcc/cp/ChangeLog
gcc/cp/parser.c

index 04f9af72d8f274355aaa505d793a05dabfb55282..2aebb116c2193aededcdfa64b464d4d99b0348fd 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-21  Jason Merrill  <jason@redhat.com>
+
+       * parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
+       to cp_finish_decl.
+
 2010-07-20  Jeffrey Yasskin  <jyasskin@google.com>
 
        PR c++/44641
index 19a158f6350fd95289302b1bef858f9b36139793..3fd96fbe06ee6f2b7ce2d60efeb3ee5db92a8c05 100644 (file)
@@ -14089,7 +14089,7 @@ cp_parser_init_declarator (cp_parser* parser,
                         `explicit' constructor is OK.  Otherwise, an
                         `explicit' constructor cannot be used.  */
                      ((is_direct_init || !is_initialized)
-                      ? 0 : LOOKUP_ONLYCONVERTING));
+                      ? LOOKUP_NORMAL : LOOKUP_IMPLICIT));
     }
   else if ((cxx_dialect != cxx98) && friend_p
           && decl && TREE_CODE (decl) == FUNCTION_DECL)