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]

[c++] disable change



For the last two weeks simple code hasn't compiled due to an change
made to pt.c:

http://gcc.gnu.org/ml/gcc-bugs/2001-01/msg00061.html
http://gcc.gnu.org/ml/libstdc++/2001-01/msg00083.html
http://gcc.gnu.org/ml/libstdc++/2001-01/msg00049.html

I'm getting one to two bug reports a day on this. It's driving me
insane.  Unless it's fixed some other way in the next 24 hours, I'd
like to disable this change with the following patch:

2001-01-10  Benjamin Kosnik  <bkoz@redhat.com>

	* pt.c (check_explicit_specialization): Disable 2000-12-14 change.

Index: cp/pt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/pt.c,v
retrieving revision 1.498
diff -c -p -r1.498 pt.c
*** pt.c	2001/01/04 19:28:56	1.498
--- pt.c	2001/01/10 19:10:34
*************** check_explicit_specialization (declarato
*** 1542,1547 ****
--- 1542,1549 ----
  	      last_function_parms = TREE_CHAIN (last_function_parms);
  	    }
  
+ #if 0
+ 	  //http://gcc.gnu.org/ml/gcc-bugs/2001-01/msg00061.html
  	  /* Inherit default function arguments from the template
  	     DECL is specializing.  */
  	  {
*************** check_explicit_specialization (declarato
*** 1566,1571 ****
--- 1568,1574 ----
  
  	    my_friendly_assert (t1 == NULL_TREE && t2 == NULL_TREE, 20001211);
  	  }
+ #endif
  
  	  /* Set up the DECL_TEMPLATE_INFO for DECL.  */
  	  DECL_TEMPLATE_INFO (decl) = tree_cons (tmpl, targs, NULL_TREE);




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