flang icon indicating copy to clipboard operation
flang copied to clipboard

Fixed internal compiler error. addili: illegal IL_TYPE(opc)

Open nikhil-mk opened this issue 5 years ago • 4 comments

Accessing the correct index

Change-Id: I8a8103f71266366bfb32c658df395ce61e3065f8

Fixes issue #860 @gklimowicz @sscalpone

nikhil-mk avatar Jan 23 '20 05:01 nikhil-mk

Is this a duplicate of https://github.com/flang-compiler/flang/issues/844 and the fix in https://github.com/flang-compiler/flang/pull/845 ?

kiranchandramohan avatar Jan 23 '20 06:01 kiranchandramohan

Is this a duplicate of #844 and the fix in #845 ?

No.

nikhil-mk avatar Jan 23 '20 09:01 nikhil-mk

@nikhil-mk this was the first approach I thought of when trying to fix the issue https://github.com/flang-compiler/flang/issues/844. But then I realised that the index (=4) is correct if the entry for half-precision is there at index (=3) in the aif array in exp_bran in exp_ftn.cpp. The fix in https://github.com/flang-compiler/flang/pull/845 adds that entry.

kiranchandramohan avatar Jan 23 '20 19:01 kiranchandramohan

Looks good to me!

mleair avatar Jan 23 '20 23:01 mleair