https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96495

paul.luck...@rwth-aachen.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49011|0                           |1
        is obsolete|                            |

--- Comment #1 from paul.luck...@rwth-aachen.de ---
Created attachment 49042
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49042&action=edit
proof of concept code -- version 2

I investigated further and the bug arises under the following circumstances:
- derived type with ALLOCATABLE property
- a binary ELEMENTAL operator
- an unary operator

The following code will crash

f(1:2) = f(1:2) .binary. (.unary. f(1))

and the error message is as follows:
"Program received signal SIGSEGV: Segmentation fault - invalid memory
reference."

Reply via email to