+2013-04-15 Tobias Burnus <burnus@net-b.de>
+
+ * class.c (gfc_find_intrinsic_vtab): Removed unused var.
+ * dependency.c (check_data_pointer_types): Fix check.
+ * frontend-passes.c (check_data_pointer_types): Remove
+ superfluous statement.
+ * parse.c (decode_omp_directive): Add missing break.
+ * resolve.c (resolve_typebound_subroutine: Free variable.
+ * trans-decl.c (create_function_arglist): Correct condition.
+
2013-04-14 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/56816
gfc_find_intrinsic_vtab (gfc_typespec *ts)
{
gfc_namespace *ns;
- gfc_symbol *vtab = NULL, *vtype = NULL, *found_sym = NULL, *def_init = NULL;
+ gfc_symbol *vtab = NULL, *vtype = NULL, *found_sym = NULL;
gfc_symbol *copy = NULL, *src = NULL, *dst = NULL;
int charlen = 0;
gfc_commit_symbol (vtab);
if (vtype)
gfc_commit_symbol (vtype);
- if (def_init)
- gfc_commit_symbol (def_init);
if (copy)
gfc_commit_symbol (copy);
if (src)
bool seen_component_ref;
if (expr1->expr_type != EXPR_VARIABLE
- || expr1->expr_type != EXPR_VARIABLE)
+ || expr2->expr_type != EXPR_VARIABLE)
return false;
sym1 = expr1->symtree->n.sym;
newbase = NULL;
e->expr_type = EXPR_ARRAY;
- c = gfc_constructor_first (oldbase);
-
for (c = gfc_constructor_first (oldbase); c;
c = gfc_constructor_next (c))
{
match ("taskyield", gfc_match_omp_taskyield, ST_OMP_TASKYIELD);
match ("threadprivate", gfc_match_omp_threadprivate,
ST_OMP_THREADPRIVATE);
+ break;
case 'w':
match ("workshare", gfc_match_omp_workshare, ST_OMP_WORKSHARE);
break;
correct typespec. */
code->expr1->ts = ts;
}
+ else if (new_ref)
+ gfc_free_ref_list (new_ref);
return true;
}
hence, the optional status cannot be transfered via a NULL pointer.
Thus, we will use a hidden argument in that case. */
else if (f->sym->attr.optional && f->sym->attr.value
- && !f->sym->attr.dimension && !f->sym->ts.type != BT_CLASS
+ && !f->sym->attr.dimension && f->sym->ts.type != BT_CLASS
&& f->sym->ts.type != BT_DERIVED)
{
tree tmp;