[C++ PATCH] Don't ICE on invalid decltype uses (PR c++/34271)

Mark Mitchell mark@codesourcery.com
Wed Dec 5 05:47:00 GMT 2007


Jakub Jelinek wrote:

> 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/34271
> 	* semantics.c (finish_decltype_type): For SCOPE_REF issue an
> 	error instead of assertion failure.
> 	* parser.c (cp_parser_decltype): If closing paren is not found,
> 	return error_mark_node.
> 
> 	* g++.dg/cpp0x/decltype9.C: New test.
> 	* g++.dg/cpp0x/decltype10.C: New test.

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list