[RFC] PR c++/44188

Jason Merrill jason@redhat.com
Thu May 20 18:09:00 GMT 2010


On 05/20/2010 07:05 AM, Dodji Seketeli wrote:
> -      mod_type_die = lookup_type_die (qualified_type);
> +      /* Handle C++ typedefs naming anonymous structs.  */
> +      if (handle_naming_typedef
> +	  && is_naming_typedef_decl (TYPE_NAME (qualified_type)))
> +	mod_type_die =  gen_typedef_die (TYPE_NAME (qualified_type),
> +					 context_die);
> +      else
> +	mod_type_die = lookup_type_die (qualified_type);

For controlling infinite recursion, rather than add a new parameter 
here, how about changing gen_typedef_die to call gen_type_die directly 
for this case so that the lookup_type_die here will succeed?

Jason



More information about the Gcc-patches mailing list