https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51993

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The first test in comment 1 has been fixed between revisions r229283 (ICE) and
r229293 (Error: Scalar INTEGER expression expected at (1)), likely r229287
(pr67805).

Compiling the second test in comment 1 with 4.4.7 up to 4.7.3 gives

pr51993_2.f90:2.27:

    character(len=4) :: a = ['a','3']
                           1
Error: The rank of the element in the structure constructor at (1) does not
match that of the component (1/0)

With 4.8 up to trunk (6.0) the errors are

pr51993_2.f90:2.37:

    character(len=4) :: a = ['a','3']
                                     1
Error: Incompatible ranks 0 and 1 in assignment at (1)
pr51993_2.f90:2.37:

    character(len=4) :: a = ['a','3']
                                     1
Error: Incompatible ranks 0 and 1 in assignment at (1)
pr51993_2.f90:2.27:

    character(len=4) :: a = ['a','3']
                           1
Error: The rank of the element in the structure constructor at (1) does not
match that of the component (1/0)

The change occurred between r194897 (2013-01-04, one error) and r195140
(2013-01-14, three errors).

Reply via email to