re PR fortran/86417 (FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess...
authorFritz Reese <fritzoreese@gmail.com>
Mon, 16 Jul 2018 18:16:00 +0000 (18:16 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Mon, 16 Jul 2018 18:16:00 +0000 (18:16 +0000)
2018-07-16  Fritz Reese  <fritzoreese@gmail.com>

    gcc/fortran/ChangeLog:

PR fortran/86417
* module.c (mio_component): Set component->loc when loading from module.

From-SVN: r262743

gcc/fortran/ChangeLog
gcc/fortran/module.c

index e7bd20f..23781ae 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-16  Fritz Reese  <fritzoreese@gmail.com>
+
+       PR fortran/86417
+       * module.c (mio_component): Set component->loc when loading from module.
+
 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR fortran/86421
index a313c3b..196da9c 100644 (file)
@@ -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 ();
 }