annotate gcc/testsuite/gfortran.dg/implicit_8.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! PR 24748
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 ! The compiler used to crash trying to take a substring of an implicit
kono
parents:
diff changeset
5 ! real scalar.
kono
parents:
diff changeset
6 subroutine variant1
kono
parents:
diff changeset
7 ybtable=ylocal(1:2) ! { dg-error "Syntax error in argument list" }
kono
parents:
diff changeset
8 end
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 ! We want the behavior to be the same whether ylocal is implicitly
kono
parents:
diff changeset
11 ! or explicitly typed.
kono
parents:
diff changeset
12 subroutine variant2
kono
parents:
diff changeset
13 real ylocal
kono
parents:
diff changeset
14 ybtable=ylocal(1:2) ! { dg-error "Syntax error in argument list" }
kono
parents:
diff changeset
15 end
kono
parents:
diff changeset
16