annotate gcc/testsuite/gfortran.dg/array_constructor_42.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900 (2020-02-13)
parents 04ced10e8804
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 !
kono
parents:
diff changeset
3 ! PR fortran/54730
kono
parents:
diff changeset
4 ! A symbol 'a' was created while attempting to parse a typespec in the array
kono
parents:
diff changeset
5 ! constructor. That (invalid) symbol was kept until translation stage
kono
parents:
diff changeset
6 ! where it was leading to an ICE.
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 ! Original testcase from Paul Kapinos <kapinos@rz.rwth-aachen.de>
kono
parents:
diff changeset
9 !
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 subroutine s
kono
parents:
diff changeset
12 implicit none
kono
parents:
diff changeset
13 intrinsic :: real
kono
parents:
diff changeset
14 real :: vec(1:2)
kono
parents:
diff changeset
15 vec = (/ real(a = 1), 1. /)
kono
parents:
diff changeset
16 end subroutine s
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 program main
kono
parents:
diff changeset
19 implicit none
kono
parents:
diff changeset
20 intrinsic :: real
kono
parents:
diff changeset
21 print *,(/ real(a = 1) /)
kono
parents:
diff changeset
22 end