re PR fortran/19589 (Regression: Error on Data assignment with LOGICAL*1)
2005-01-29 Steven G. Kargl <kargls@comcast.net> PR fortran/19589 * expr.c (gfc_check_assign): Check for conformance of logical operands testsuite/ * gfortran.dg/logical_data_1.f90: New test. From-SVN: r94409
This commit is contained in:
parent
567426d9af
commit
f240b8960c
|
@ -1,3 +1,8 @@
|
|||
2005-01-29 Steven G. Kargl <kargls@comcast.net>
|
||||
|
||||
PR fortran/19589
|
||||
* expr.c (gfc_check_assign): Check for conformance of logical operands
|
||||
|
||||
2004-01-27 Steven Bosscher <stevenb@suse.de>
|
||||
|
||||
* trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and
|
||||
|
|
|
@ -1820,6 +1820,9 @@ gfc_check_assign (gfc_expr * lvalue, gfc_expr * rvalue, int conform)
|
|||
if (gfc_numeric_ts (&lvalue->ts) && gfc_numeric_ts (&rvalue->ts))
|
||||
return SUCCESS;
|
||||
|
||||
if (lvalue->ts.type == BT_LOGICAL && rvalue->ts.type == BT_LOGICAL)
|
||||
return SUCCESS;
|
||||
|
||||
gfc_error ("Incompatible types in assignment at %L, %s to %s",
|
||||
&rvalue->where, gfc_typename (&rvalue->ts),
|
||||
gfc_typename (&lvalue->ts));
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2005-01-29 Steven G. Kargl <kargls@comcast.net>
|
||||
|
||||
PR fortran/19589
|
||||
* gfortran.dg/logical_data_1.f90: New test.
|
||||
|
||||
2005-01-28 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/19253
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
! { dg-do compile }
|
||||
! PR19589
|
||||
! Logical objects/values with differing type kinds were being rejected in
|
||||
! data statements.
|
||||
program logical_data_1
|
||||
logical(kind=4) :: a
|
||||
logical(kind=8) :: b
|
||||
data a, b /.true., .false./
|
||||
end program
|
Loading…
Reference in New Issue