[Bug fortran/78474] New: gfortran accepts invalid submodule syntax

2016-11-22 Thread nick.brealey at cobham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78474

Bug ID: 78474
   Summary: gfortran accepts invalid submodule syntax
   Product: gcc
   Version: 6.2.1
   URL: https://software.intel.com/en-us/forums/intel-fortran-
compiler-for-linux-and-mac-os-x/topic/703642
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: nick.brealey at cobham dot com
  Target Milestone: ---

gfortran accepts invalid submodule syntax:

submodule (mtop:submod:subsubmod) subsubsubmod

the correct syntax should only have the top level module and the immediate
parent.

This issue was discussed on the Intel Fortran forum at the URL above.

[Bug fortran/78474] gfortran accepts invalid submodule syntax

2016-11-22 Thread nick.brealey at cobham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78474

--- Comment #2 from Nicholas Brealey  ---
Created attachment 40112
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40112&action=edit
example code 2

[Bug fortran/78474] gfortran accepts invalid submodule syntax

2016-11-22 Thread nick.brealey at cobham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78474

--- Comment #1 from Nicholas Brealey  ---
Created attachment 40111
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40111&action=edit
example code

[Bug fortran/78474] gfortran accepts invalid submodule syntax

2016-11-22 Thread nick.brealey at cobham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78474

--- Comment #3 from Nicholas Brealey  ---
Created attachment 40113
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40113&action=edit
example code 3

[Bug fortran/78474] gfortran accepts invalid submodule syntax

2016-11-22 Thread nick.brealey at cobham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78474

--- Comment #4 from Nicholas Brealey  ---
Created attachment 40114
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40114&action=edit
example code 4