public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67525] New: ICE on select type with improper selector
@ 2015-09-09 16:52 gerhard.steinmetz.fortran@t-online.de
2015-09-09 16:53 ` [Bug fortran/67525] " gerhard.steinmetz.fortran@t-online.de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-09 16:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
Bug ID: 67525
Summary: ICE on select type with improper selector
Product: gcc
Version: 5.2.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: ---
This test case with an improper selector ...
real function f(x)
select type (x)
end select
end
or this variation ...
real function f(x)
select type (x=>null())
end select
end
yields :
f951: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67525] ICE on select type with improper selector
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
@ 2015-09-09 16:53 ` gerhard.steinmetz.fortran@t-online.de
2015-09-09 22:30 ` kargl at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-09 16:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Whereas :
$ cat y1.f90
subroutine f(x)
select type (x)
end select
end
$ gfortran -c y1.f90
y1.f90:2:18:
select type (x)
1
Error: Selector shall be polymorphic in SELECT TYPE statement at (1)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67525] ICE on select type with improper selector
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
2015-09-09 16:53 ` [Bug fortran/67525] " gerhard.steinmetz.fortran@t-online.de
@ 2015-09-09 22:30 ` kargl at gcc dot gnu.org
2015-09-25 22:28 ` kargl at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-09-09 22:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-09-09
CC| |kargl at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from kargl at gcc dot gnu.org ---
Confirmed. I have a patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67525] ICE on select type with improper selector
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
2015-09-09 16:53 ` [Bug fortran/67525] " gerhard.steinmetz.fortran@t-online.de
2015-09-09 22:30 ` kargl at gcc dot gnu.org
@ 2015-09-25 22:28 ` kargl at gcc dot gnu.org
2015-09-25 22:46 ` kargl at gcc dot gnu.org
2015-09-25 23:04 ` kargl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-09-25 22:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
--- Comment #3 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri Sep 25 22:28:04 2015
New Revision: 228155
URL: https://gcc.gnu.org/viewcvs?rev=228155&root=gcc&view=rev
Log:
2015-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67525
* parse.c (match_deferred_characteristics): Remove an assert, which
allows an invalid SELECT TYPE selector to be detected.
2015-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67525
* gfortran.dg/pr67525.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr67525.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/parse.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67525] ICE on select type with improper selector
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
` (2 preceding siblings ...)
2015-09-25 22:28 ` kargl at gcc dot gnu.org
@ 2015-09-25 22:46 ` kargl at gcc dot gnu.org
2015-09-25 23:04 ` kargl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-09-25 22:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
--- Comment #4 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri Sep 25 22:45:27 2015
New Revision: 228157
URL: https://gcc.gnu.org/viewcvs?rev=228157&root=gcc&view=rev
Log:
2015-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67525
* parse.c (match_deferred_characteristics): Remove an assert, which
allows an invalid SELECT TYPE selector to be detected.
2015-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67525
* gfortran.dg/pr67525.f90: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr67525.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/parse.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67525] ICE on select type with improper selector
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
` (3 preceding siblings ...)
2015-09-25 22:46 ` kargl at gcc dot gnu.org
@ 2015-09-25 23:04 ` kargl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-09-25 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67525
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org
Target Milestone|--- |5.3
--- Comment #5 from kargl at gcc dot gnu.org ---
Fixed on trunk and 5-branch. Thanks for the bug report.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-25 23:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-09 16:52 [Bug fortran/67525] New: ICE on select type with improper selector gerhard.steinmetz.fortran@t-online.de
2015-09-09 16:53 ` [Bug fortran/67525] " gerhard.steinmetz.fortran@t-online.de
2015-09-09 22:30 ` kargl at gcc dot gnu.org
2015-09-25 22:28 ` kargl at gcc dot gnu.org
2015-09-25 22:46 ` kargl at gcc dot gnu.org
2015-09-25 23:04 ` kargl at gcc dot gnu.org
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).