https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79676

            Bug ID: 79676
           Summary: [submodules] Compilation/linking error when module
                    procedures PRIVATE
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adam at aphirst dot karoo.co.uk
  Target Milestone: ---

Demonstration code:
https://gist.github.com/aphirst/aacfe1eb5eda1151364ddbf2feef5ed3

Build log:
http://sprunge.us/iYaP

---

Building of "(my_mod) my_submod" fails when a PRIVATE statement is present in
"my_mod". Removal of the statement permits successful building.

Interestingly, re-insertion of the PRIVATE statement followed by a repeat of
the build command (no cleaning of previous files) also results in a successful
build.

---

Using Arch Linux x64_64, with GCC version 6.3.1 20170109. I spoke to dominiq in
the OFTC IRC channel who was curious as to whether this was similar to PR79434,
and otherwise suggested I open a ticket.

If there's anything important I missed, or anything else you need, don't
hesitate to ask.

Reply via email to