This is the mail archive of the gcc-bugs@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]

[Bug c++/13968] [3.4/3.5 Regression] Internal compiler error while compiling Boost library


------- Additional Comments From dberlin at gcc dot gnu dot org  2004-02-02 20:27 -------
This patch will fix it, for example. I believe Mark should know what the right thing to do in this case is, 
if not this

Index: pt.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.821
diff -u -3 -p -r1.821 pt.c
--- pt.c        26 Jan 2004 17:41:50 -0000      1.821
+++ pt.c        2 Feb 2004 20:19:46 -0000
@@ -4744,6 +4744,8 @@ uses_template_parms (tree t)
                   || value_dependent_expression_p (t));
   else if (t == error_mark_node)
     dependent_p = false;
+  else if (TREE_CODE (t) == IDENTIFIER_NODE)
+         dependent_p = false;
   else 
     abort ();
   processing_template_decl = saved_processing_template_decl;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13968


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