[C++ Patch] PR 30302

Mark Mitchell mark@codesourcery.com
Wed Sep 5 00:22:00 GMT 2007


Paolo Carlini wrote:

> /cp
> 2007-09-03  Paolo Carlini  <pcarlini@suse.de>
> 
> 	PR c++/30302
> 	* semantics.c (finish_id_expression): Check that path != NULL_TREE
> 	before using TYPE_BINFO on it.
> 	* class.c (finish_struct_anon): Deal correctly with anonymous
> 	structs (vs unions, as GNU extension) in error messages.
> 
> /testsuite
> 2007-09-03  Paolo Carlini  <pcarlini@suse.de>
> 
> 	PR c++/30302
> 	* g++.dg/ext/anon-struct5.C: New.

The class.c changes are fine, as is the new test case.

I don't quite understand the finish_id_expression change; is this
something that could happen with unions too, or is it special for structs?

Thanks,

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



More information about the Gcc-patches mailing list