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 e7bd20fe03cd7899e11a5edb5b06f8a9fe15277a..23781ae20d133af4593518dcdbe90f678e73bbe3 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 a313c3b28f450daba3b11ee697f807e219357827..196da9c0ff775067f3c9aeac925d41142197f920 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 ();
 }