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++/17401] [3.4/4.0 Regression] ICE with invalid pure specifier


------- Additional Comments From steven at gcc dot gnu dot org  2004-09-19 12:21 -------
Isn't this just a matter of not filling ridpointers with null_node 
as done below?  Whenever RID_NULL is encountered, we return just 
null_node anyway, and there are apparently no other places where 
ridpointers[RID_NULL] is read.  I'll test this patch, let's see if 
this helps. 
 
Index: lex.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/cp/lex.c,v 
retrieving revision 1.343 
diff -c -3 -p -r1.343 lex.c 
*** lex.c       9 Sep 2004 17:11:18 -0000       1.343 
--- lex.c       19 Sep 2004 12:20:27 -0000 
*************** cxx_init (void) 
*** 358,364 **** 
       not shared. */ 
    null_node = make_node (INTEGER_CST); 
    TREE_TYPE (null_node) = c_common_type_for_size (POINTER_SIZE, 0); 
-   ridpointers[RID_NULL] = null_node; 
 
    interface_unknown = 1; 
 
--- 358,363 ---- 

-- 


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


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