]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: BOZ literal constants are not compatible to any type [PR103413]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 26 Oct 2022 19:00:44 +0000 (21:00 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 26 Oct 2022 20:23:44 +0000 (22:23 +0200)
commitf7d28818179247685f3c101f9f2f16366f56309b
tree97dbc2c8b0f9997bfc02643852f771e22f59f594
parent068baae1864e2a8036beec3082d384a204e24201
Fortran: BOZ literal constants are not compatible to any type [PR103413]

gcc/fortran/ChangeLog:

PR fortran/103413
* symbol.cc (gfc_type_compatible): A boz-literal-constant has no type
and thus is not considered compatible to any type.

gcc/testsuite/ChangeLog:

PR fortran/103413
* gfortran.dg/illegal_boz_arg_4.f90: New test.
gcc/fortran/symbol.cc
gcc/testsuite/gfortran.dg/illegal_boz_arg_4.f90 [new file with mode: 0644]