This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13968] [3.4/3.5 Regression] Internal compiler error while compiling Boost library
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 20:27:44 -0000
- Subject: [Bug c++/13968] [3.4/3.5 Regression] Internal compiler error while compiling Boost library
- References: <20040201234709.13968.rwgk@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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