public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/68054] New: ICE on using protected attribute in program without program statement
@ 2015-10-22 17:18 gerhard.steinmetz.fortran@t-online.de
2015-10-24 0:25 ` [Bug fortran/68054] " kargl at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-10-22 17:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68054
Bug ID: 68054
Summary: ICE on using protected attribute in program without
program statement
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: ---
Without an explicit program statement :
$ cat z1.f90
!program p
real, protected :: x
end
$ gfortran -g -O0 -Wall -fcheck=all z1.f90
f951: internal compiler error: Segmentation fault
---
Detected with program statement :
$ cat z1p.f90
program p
real, protected :: x
end
$ gfortran -g -O0 -Wall -fcheck=all z1p.f90
z1p.f90:2:21:
real, protected :: x
1
Error: PROTECTED at (1) only allowed in specification part of a module
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/68054] ICE on using protected attribute in program without program statement
2015-10-22 17:18 [Bug fortran/68054] New: ICE on using protected attribute in program without program statement gerhard.steinmetz.fortran@t-online.de
@ 2015-10-24 0:25 ` kargl at gcc dot gnu.org
2015-10-29 17:24 ` kargl at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-24 0:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68054
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-24
CC| |kargl at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from kargl at gcc dot gnu.org ---
I have a patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/68054] ICE on using protected attribute in program without program statement
2015-10-22 17:18 [Bug fortran/68054] New: ICE on using protected attribute in program without program statement gerhard.steinmetz.fortran@t-online.de
2015-10-24 0:25 ` [Bug fortran/68054] " kargl at gcc dot gnu.org
@ 2015-10-29 17:24 ` kargl at gcc dot gnu.org
2015-10-29 20:33 ` kargl at gcc dot gnu.org
2015-10-29 20:33 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-29 17:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68054
--- Comment #2 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Thu Oct 29 17:23:52 2015
New Revision: 229542
URL: https://gcc.gnu.org/viewcvs?rev=229542&root=gcc&view=rev
Log:
2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68054
* decl.c (match_attr_spec): PROTECTED can only be a module.
2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68054
* gfortran.dg/pr68054.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr68054.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/68054] ICE on using protected attribute in program without program statement
2015-10-22 17:18 [Bug fortran/68054] New: ICE on using protected attribute in program without program statement gerhard.steinmetz.fortran@t-online.de
2015-10-24 0:25 ` [Bug fortran/68054] " kargl at gcc dot gnu.org
2015-10-29 17:24 ` kargl at gcc dot gnu.org
@ 2015-10-29 20:33 ` kargl at gcc dot gnu.org
2015-10-29 20:33 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-29 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68054
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |5.3
--- Comment #4 from kargl at gcc dot gnu.org ---
Fixed on trunk and 5-branch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/68054] ICE on using protected attribute in program without program statement
2015-10-22 17:18 [Bug fortran/68054] New: ICE on using protected attribute in program without program statement gerhard.steinmetz.fortran@t-online.de
` (2 preceding siblings ...)
2015-10-29 20:33 ` kargl at gcc dot gnu.org
@ 2015-10-29 20:33 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-29 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68054
--- Comment #3 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Thu Oct 29 20:32:41 2015
New Revision: 229558
URL: https://gcc.gnu.org/viewcvs?rev=229558&root=gcc&view=rev
Log:
2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68054
* decl.c (match_attr_spec): PROTECTED can only be a module.
2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68054
* gfortran.dg/pr68054.f90: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr68054.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-29 20:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 17:18 [Bug fortran/68054] New: ICE on using protected attribute in program without program statement gerhard.steinmetz.fortran@t-online.de
2015-10-24 0:25 ` [Bug fortran/68054] " kargl at gcc dot gnu.org
2015-10-29 17:24 ` kargl at gcc dot gnu.org
2015-10-29 20:33 ` kargl at gcc dot gnu.org
2015-10-29 20:33 ` 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).