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]

C++ PATCH: Fix -Werror problem


One of my patches last night broke -Werror builds; the obvious fix was
committed to mainline this morning.  I apologize for the breakage.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2005-01-31  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (start_decl): Add missing parentheses.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1357
retrieving revision 1.1358
diff -c -5 -p -r1.1357 -r1.1358
*** decl.c	31 Jan 2005 06:16:54 -0000	1.1357
--- decl.c	31 Jan 2005 16:16:16 -0000	1.1358
*************** start_decl (const cp_declarator *declara
*** 3700,3710 ****
  	    decl = field;
  	}
  
        /* cp_finish_decl sets DECL_EXTERNAL if DECL_IN_AGGR_P is set.  */
        DECL_IN_AGGR_P (decl) = 0;
!       if (DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl)
  	  || CLASSTYPE_TEMPLATE_INSTANTIATION (context))
  	{
  	  /* Do not mark DECL as an explicit specialization if it was
  	     not already marked as an instantiation; a declaration
  	     should never be marked as a specialization unless we know
--- 3700,3710 ----
  	    decl = field;
  	}
  
        /* cp_finish_decl sets DECL_EXTERNAL if DECL_IN_AGGR_P is set.  */
        DECL_IN_AGGR_P (decl) = 0;
!       if ((DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl))
  	  || CLASSTYPE_TEMPLATE_INSTANTIATION (context))
  	{
  	  /* Do not mark DECL as an explicit specialization if it was
  	     not already marked as an instantiation; a declaration
  	     should never be marked as a specialization unless we know


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