http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Note that there are 3 error_init calls that seem unreachable (?):

 6783 
 6784   if (COMPLETE_TYPE_P (type) && TREE_CODE (TYPE_SIZE (type)) !=
INTEGER_CST)
 6785     {
 6786       error_init ("variable-sized object may not be initialized");
 6787       return error_mark_node;
 6788     }

 7491       else if (vec_safe_length (constructor_elements) != 1)
 7492         {
 7493           error_init ("extra elements in scalar initializer");
 7494           ret.value = (*constructor_elements)[0].value;
 7495         }

 8590   if (constructor_stack->replacement_value.value != 0)
 8591     {
 8592       error_init ("excess elements in struct initializer");
 8593       return;
 8594     }

Reply via email to