[patch c++]: Fix pr/58835 [4.7/4.8/4.9 Regression] ICE with __PRETTY_FUNCTION__ in broken function

Kai Tietz ktietz70@googlemail.com
Wed Feb 19 15:50:00 GMT 2014


Ping?

2014-02-11 15:11 GMT+01:00 Kai Tietz <ktietz70@googlemail.com>:
> Hi,
>
> the following patch adds missing handling of error_mark_node result of
> fname_decl within finish_fname.
>
> ChangeLog
>
> 2014-02-11  Kai Tietz  <ktietz@redhat.com>
>
>         PR c++/58835
>         * semantics.c (finish_fname): Handle error_mark_node.
>
> Regression tested for x86_64-unknown-linux-gnu, i686-w64-mingw32.  Ok for apply?
>
> Regards,
> Kai
>
> Index: semantics.c
> ===================================================================
> --- semantics.c (Revision 207686)
> +++ semantics.c (Arbeitskopie)
> @@ -2630,7 +2630,8 @@ finish_fname (tree id)
>    tree decl;
>
>    decl = fname_decl (input_location, C_RID_CODE (id), id);
> -  if (processing_template_decl && current_function_decl)
> +  if (processing_template_decl && current_function_decl
> +      && decl != error_mark_node)
>      decl = DECL_NAME (decl);
>    return decl;
>  }



More information about the Gcc-patches mailing list