From 835e529de2dc75d9c051a178863ae68d8bf1d684 Mon Sep 17 00:00:00 2001 From: Fritz Reese Date: Mon, 16 Jul 2018 18:16:00 +0000 Subject: [PATCH] re PR fortran/86417 (FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess errors)) 2018-07-16 Fritz Reese gcc/fortran/ChangeLog: PR fortran/86417 * module.c (mio_component): Set component->loc when loading from module. From-SVN: r262743 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/module.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index e7bd20fe03c..23781ae20d1 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2018-07-16 Fritz Reese + + PR fortran/86417 + * module.c (mio_component): Set component->loc when loading from module. + 2018-07-10 Jakub Jelinek PR fortran/86421 diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index a313c3b28f4..196da9c0ff7 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -2848,6 +2848,8 @@ mio_component (gfc_component *c, int vtype) if (c->attr.proc_pointer) mio_typebound_proc (&c->tb); + c->loc = gfc_current_locus; + mio_rparen (); } -- 2.30.2