[Bug fortran/59252] wrong code generation for allocatable character component
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 4 07:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59252
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |janus at gcc dot gnu.org
--- Comment #4 from janus at gcc dot gnu.org ---
Created attachment 31569
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31569&action=edit
patch
This patch gets rid of the segfault and is free of regressions. However, the
dump still shows a double nullification of the 'label' component:
appv->label = 0B;
{
struct branch_plot_results_ppv_type branch_plot_results_ppv_type.0;
if (appv != 0B) goto L.1;
appv = (struct branch_plot_results_ppv_type *) __builtin_calloc (1, 8);
L.1:;
branch_plot_results_ppv_type.0.label = 0B;
*appv = branch_plot_results_ppv_type.0;
}
More information about the Gcc-bugs
mailing list