[Bug c++/18095] [4.0 regression] ICE in cp_lexer_consume_token on missing ";"

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 22 12:43:00 GMT 2004


------- Additional Comments From nathan at gcc dot gnu dot org  2004-10-22 12:42 -------
2004-10-22  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/18095
	* parser.c (eof_token): Make const, correctly initialize rid and
	location fields.
	(struct cp_lexer): Replace buffer_end pointer with buffer_length
	count. Adjust.
	(cp_lexer_new_main): Directly grow lexer's buffer here.  Don't
	zero it out.
	(cp_lexer_new_from_tokens): Adjust.
	(cp_lexer_grow_buffer): Remove.
	(cp_lexer_peek_nth_token, cp_lexer_consume_token,
	cp_lexer_purge_token): Add const casts.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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



More information about the Gcc-bugs mailing list