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
* [Bug fortran/66575] Endless compilation on missing end interface
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 ` gerhard.steinmetz.fortran@t-online.de
2015-06-27 15:30 ` dominiq at lps dot ens.fr
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-06-17 17:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
The above sources can be reduced further. The part below "contains"
(inclusive contains) is not needed to produce the effect :
$ cat zlcti_4.f90
module m
interface operator (.f.)
procedure f
interface operator (.g.)
procedure g
end interface
end
$ cat zlcti_6.f90
module m
interface operator (.f.)
procedure f
end
interface operator (.g.)
procedure g
end
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/66575] Endless compilation on missing end interface
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
3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-27 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-06-27
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
All the tests give an error in a fraction of a second on x86_64-apple-darwin14.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/66575] Endless compilation on missing end interface
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
3 siblings, 0 replies; 5+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-06-30 16:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575
--- Comment #3 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Playing around, I've found other cases (wrong code with procedure)
causing endless compilation on my environment, e.g.
$ cat zlctp_1.f90
program p
procedure(g) :: g
procedure(g) :: g
end
$ cat zlctp_2.f90
program p
procedure(g) :: g
procedure(g) !! anything
end
$ time gfortran -c zlctp_2.f90 # with 5.1.1, 4.9.0, 4.8.3
# ^C after a few minutes
real 3m46.187s
user 0m0.000s
sys 0m0.002s
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/66575] Endless compilation on missing end interface
2015-06-17 17:00 [Bug fortran/66575] New: Endless compilation on missing end interface gerhard.steinmetz.fortran@t-online.de
` (2 preceding siblings ...)
2015-06-30 16:38 ` gerhard.steinmetz.fortran@t-online.de
@ 2015-09-08 12:31 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-08 12:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I confirm the endless compilation for the tests in comment 3 with 4.8 up to
trunk (6.0).
^ 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).