public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67542] ICE on initializing type variable with a longer array
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
@ 2015-09-10 16:41 ` gerhard.steinmetz.fortran@t-online.de
2015-09-13 15:01 ` dominiq at lps dot ens.fr
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-10 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
The ICE disappears if some prints are added :
$ cat z2.f90
program p
type t
integer :: n
character(8) :: c(1)
end type
type(t) :: x = t(1, ['a'])
type(t) :: y = t(1, ['a', 'b'])
print *, x
print *, y
end
$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z2.f90
$ a.out
1 a
1 a
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67542] New: ICE on initializing type variable with a longer array
@ 2015-09-10 16:41 gerhard.steinmetz.fortran@t-online.de
2015-09-10 16:41 ` [Bug fortran/67542] " 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-10 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
Bug ID: 67542
Summary: ICE on initializing type variable with a longer array
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 a longer array in initializer of y :
$ cat z1.f90
program p
type t
integer :: n
character(8) :: c(1)
end type
type(t) :: x = t(1, ['a'])
type(t) :: y = t(1, ['a', 'b'])
end
Yields with gfortran 5.2.1 and 4.9.0 :
internal compiler error: in native_encode_initializer, at dwarf2out.c:16210
Compiles with no error using gfortran 4.8.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67542] ICE on initializing type variable with a longer array
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
2015-09-10 16:41 ` [Bug fortran/67542] " gerhard.steinmetz.fortran@t-online.de
@ 2015-09-13 15:01 ` dominiq at lps dot ens.fr
2021-10-24 8:35 ` [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945 dominiq at lps dot ens.fr
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-13 15:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-09-13
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I don't get any internal compiler error for the test in comment 0 from 4.8 up
to trunk (6.0). However I am surprised that I don't get any error. The
following test
character(4) :: str
str=['a', 'b']
print *, str
end
gives
str=['a', 'b']
1
Error: Incompatible ranks 0 and 1 in assignment at (1)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
2015-09-10 16:41 ` [Bug fortran/67542] " gerhard.steinmetz.fortran@t-online.de
2015-09-13 15:01 ` dominiq at lps dot ens.fr
@ 2021-10-24 8:35 ` dominiq at lps dot ens.fr
2021-10-24 14:45 ` dominiq at lps dot ens.fr
2021-10-24 19:09 ` anlauf at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-10-24 8:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
As for r12-4638 the tests are now rejected whit
Error: The shape of component 'c' in the structure constructor at (1) differs
from the shape of the declared component for dimension 1 (2/1)
So this old PR could probably be closed as FIXED.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
` (2 preceding siblings ...)
2021-10-24 8:35 ` [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945 dominiq at lps dot ens.fr
@ 2021-10-24 14:45 ` dominiq at lps dot ens.fr
2021-10-24 19:09 ` anlauf at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-10-24 14:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate of pr102685, fixed by r12-4452?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
` (3 preceding siblings ...)
2021-10-24 14:45 ` dominiq at lps dot ens.fr
@ 2021-10-24 19:09 ` anlauf at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-10-24 19:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |DUPLICATE
CC| |anlauf at gcc dot gnu.org
--- Comment #14 from anlauf at gcc dot gnu.org ---
Indeed this is a duplicate. All ICEing cases are rejected by the new check.
*** This bug has been marked as a duplicate of bug 102685 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-10-24 19:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-10 16:41 [Bug fortran/67542] New: ICE on initializing type variable with a longer array gerhard.steinmetz.fortran@t-online.de
2015-09-10 16:41 ` [Bug fortran/67542] " gerhard.steinmetz.fortran@t-online.de
2015-09-13 15:01 ` dominiq at lps dot ens.fr
2021-10-24 8:35 ` [Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945 dominiq at lps dot ens.fr
2021-10-24 14:45 ` dominiq at lps dot ens.fr
2021-10-24 19:09 ` anlauf 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).