You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Precision literals should be stored as Literal, not int #3538
subroutinesub()
real(4) :: r
r = r +1.0_4endsubroutine
The value of psyir.walk(Assignment)[0].rhs.datatype is Scalar<REAL, UNDEFINED>. This is because the types of the arguments to + have slightly different representations:
Activity
#3506 repoint stale ref #3135 to #3538
mn416 commentedon Aug 13, 2026
I noticed this issue while working on PR #3554.
The value of
psyir.walk(Assignment)[0].rhs.datatypeisScalar<REAL, UNDEFINED>. This is because the types of the arguments to+have slightly different representations:Scalar<REAL, 4>Scalar<REAL, Literal[value:'4', Scalar<INTEGER, UNDEFINED>]>I think the source of the problem is that the
compute_precision()function does not understandLiteralprecisions.