public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/66575] New: Endless compilation on missing end interface
@ 2015-06-17 17:00 gerhard.steinmetz.fortran@t-online.de
  2015-06-17 17:01 ` [Bug fortran/66575] " gerhard.steinmetz.fortran@t-online.de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-06-17 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66575
           Summary: Endless compilation on missing end interface
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

If the first "end interface" is missing :

$ cat zlcti_1.f90
   module m
      interface operator (.f.)
         procedure f
      !end interface
      interface operator (.g.)
         procedure g
      end interface
   contains
      integer function f(x)
         integer, intent(in) :: x
         f = x
      end function
      integer function g(x)
         integer, intent(in) :: x
         g = x
      end function
   end


or wrong for whatever reason, e.g. :

$ cat zlcti_2.f90
   module m
      interface operator (.f.)
         procedure f
      end !interface
      interface operator (.g.)
         procedure g
      end interface
   contains
      integer function f(x)
         integer, intent(in) :: x
         f = x
      end function
      integer function g(x)
         integer, intent(in) :: x
         g = x
      end function
   end


then compilation will not end, even after minutes.

$ time gfortran -c zlcti_1.f90
# ^C after a few minutes

real    5m10.508s
user    0m0.000s
sys     0m0.001s

Tested with gfortran 5.1.1, 4.9.0, 4.8.3 (on SUSE Linux 13.2, 64 bit).
Tested with several combinations of options and several flags.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-08 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17 17:00 [Bug fortran/66575] New: Endless compilation on missing end interface gerhard.steinmetz.fortran@t-online.de
2015-06-17 17:01 ` [Bug fortran/66575] " gerhard.steinmetz.fortran@t-online.de
2015-06-27 15:30 ` dominiq at lps dot ens.fr
2015-06-30 16:38 ` gerhard.steinmetz.fortran@t-online.de
2015-09-08 12:31 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).