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

            Bug ID: 90166
           Summary: Compiler Fails at Assembler
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cgarrett01 at bellflight dot com
  Target Milestone: ---

If I try to compile the following code (filename = hello.f90)

   module subroutine hello

   write(*,*) "hello"

   end subroutine

with 'gfortran -c hello.f90' I get the assembler error

   /tmp/ccrIt4g8.s: Assembler messages:
   /tmp/ccrIt4g8.s:10: Error: junk at end of line, first unrecognized character
is `('
   /tmp/ccrIt4g8.s:11: Error: unrecognized symbol type ""
   /tmp/ccrIt4g8.s:11: Error: junk at end of line, first unrecognized character
is `('
   /tmp/ccrIt4g8.s:12: Error: invalid character '(' in mnemonic
   /tmp/ccrIt4g8.s:42: Error: expected comma after name `__' in .size directive

It is incorrect code, but I think the compiler should give the error, not the
assembler.  In this case, it's incorrect to have the module attribute in front
of "subroutine hello".

Reply via email to