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]

PR 13140 fat-finger


I managed to lose a comma in cp/pt.c right as I checked in the patch for
PR c++/13140, breaking the bootstrap.

Thanks to Paolo Carlini for pointing out that problem; it's now been
corrected.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
2005-09-15  Mark Mitchell  <mark@codesourcery.com>

	* pt.c (check_explicit_instantiation_namespace): Fix typo.

Index: pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.1035
retrieving revision 1.1036
diff -c -5 -p -r1.1035 -r1.1036
*** pt.c	15 Sep 2005 16:03:17 -0000	1.1035
--- pt.c	15 Sep 2005 16:51:37 -0000	1.1036
*************** check_explicit_instantiation_namespace (
*** 683,693 ****
    /* DR 275: An explicit instantiation shall appear in an enclosing
       namespace of its template.  */ 
    ns = decl_namespace_context (spec);
    if (!is_ancestor (current_namespace, ns))
      pedwarn ("explicit instantiation of %qD in namespace %qD "
! 	     "(which does not enclose namespace %qD)"
  	     spec, current_namespace, ns);
  }
  
  /* The TYPE is being declared.  If it is a template type, that means it
     is a partial specialization.  Do appropriate error-checking.  */
--- 683,693 ----
    /* DR 275: An explicit instantiation shall appear in an enclosing
       namespace of its template.  */ 
    ns = decl_namespace_context (spec);
    if (!is_ancestor (current_namespace, ns))
      pedwarn ("explicit instantiation of %qD in namespace %qD "
! 	     "(which does not enclose namespace %qD)",
  	     spec, current_namespace, ns);
  }
  
  /* The TYPE is being declared.  If it is a template type, that means it
     is a partial specialization.  Do appropriate error-checking.  */

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