[Bug fortran/69859] Non-deterministic ICEs on incomplete character declaration statement
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Thu Feb 18 17:53:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69859
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery,
| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-02-18
CC| |dmalcolm at gcc dot gnu.org,
| |manu at gcc dot gnu.org
Summary|ICE on incomplete character |Non-deterministic ICEs on
|declaration statement |incomplete character
| |declaration statement
Ever confirmed|0 |1
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I have compiled the tests from 4.8 up to trunk (6.0). While I have seen ICEs,
it happens that sometime they are were not seen:
[Book15] f90/bug% gfortran-fsf-4.8 pr69859_2.f90
pr69859_2.f90:3.19:
character a ,
1
Error: Invalid character in name at (1)
...
pr69859_2.f90:8.17:
character f %
1
Error: Syntax error in data declaration at (1)
pr69859_2.f90:3.17:
character a ,
1
Error: Character length of component 'a' needs to be a constant specification
expression at (1)
[Book15] f90/bug% gfortran-fsf-4.8 pr69859_2.f90
pr69859_2.f90:3.19:
character a ,
1
Error: Invalid character in name at (1)
...
pr69859_2.f90:8.17:
character f %
1
Error: Syntax error in data declaration at (1)
f951: internal compiler error: Segmentation fault: 11
f951: internal compiler error: Abort trap: 6
gfortran-fsf-4.8: internal compiler error: Abort trap: 6 (program f951)
Abort
[Book15] f90/bug% gfcc pr69859_3.f90
pr69859_3.f90:3:36:
character, allocatable :: x(:) y(:)
1
Error: Syntax error in data declaration at (1)
pr69859_3.f90:3:36:
character, allocatable :: x(:) y(:)
1
Error: Character length of component 'x' needs to be a constant specification
expression at (1)
[Book15] f90/bug% gfcc pr69859_3.f90
pr69859_3.f90:3:36:
character, allocatable :: x(:) y(:)
1
Error: Syntax error in data declaration at (1)
f951: internal compiler error: Segmentation fault: 11
f951: internal compiler error: Abort trap: 6
gfcc: internal compiler error: Abort trap: 6 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
(gfcc: trunk revision 233414).
More information about the Gcc-bugs
mailing list