This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Undefined reference to module variable when using equivalence()
Yes - reverting that commit resolves the problem and the test case compiles
successfully.
On Monday, September 12, 2016 4:56:21 PM PDT Steve Kargl wrote:
> On Mon, Sep 12, 2016 at 04:51:51PM -0700, Andrew Benson wrote:
> > On Monday, September 12, 2016 4:51:09 PM PDT Steve Kargl wrote:
> > > On Mon, Sep 12, 2016 at 04:42:15PM -0700, Andrew Benson wrote:
> > > > On Monday, September 12, 2016 4:40:23 PM PDT Steve Kargl wrote:
> > > > > On Mon, Sep 12, 2016 at 04:14:39PM -0700, Andrew Benson wrote:
> > > > > > The latest revision of gfortran ...
> > > > >
> > > > > What do you mean by "latest revision"?
> > > >
> > > > Apologies - I should have specified that. Revision 240102 of the svn
> > > > repository (svn://gcc.gnu.org/svn/gcc) checked out earlier today.
> > >
> > > Which version? 5, 6, or 7?
> >
> > 7
>
> If you revert this commit:
>
> ------------------------------------------------------------------------
> r240063 | kargl | 2016-09-09 17:52:45 -0700 (Fri, 09 Sep 2016) | 12 lines
>
> 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/77420
> * module.c (load_equiv): If the current namespace has a list of
> equivalence statements, initialize duplicate to false and then
> look for duplicates; otherwise, initialize it to true.
>
> 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/77420
> * gfortran.dg/pr77420.f90: New test.
>
> does it compile?
--
* Andrew Benson: http://users.obs.carnegiescience.edu/abenson/contact.html
* Galacticus: http://sites.google.com/site/galacticusmodel