]> 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>
Fri, 28 Oct 2022 20:49:08 +0000 (22:49 +0200)
commit3b4c9e0658b13b8db6c7f38242ed270cdb8fc932
treee04f9fbf5039fad0569ec413fca60b1973aeaa34
parent0586159b57426ed7d235b42f38681213c3183892
Fortran: BOZ literal constants are not compatible to any type [PR103413]

gcc/fortran/ChangeLog:

PR fortran/103413
* symbol.c (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.

(cherry picked from commit f7d28818179247685f3c101f9f2f16366f56309b)
gcc/fortran/symbol.c
gcc/testsuite/gfortran.dg/illegal_boz_arg_4.f90 [new file with mode: 0644]