Hi Andre,
for bug pr69011 I like to propose the attached patch. The patch fixes
the ICE and furthermore makes sure, that for this case of referencing a
polymorphic object the correct vtype is selected. Previously the
declared vtype of the source=-expression was taken for the object(s) to
allocate. Now the actual vtype is taken, i.e., the vptr component of
source='s object is taken. This is important when source references a
subclass.
Bootstrapped and regtested ok on x86_64-pc-linux-gnu/f23.
Ok for trunk?
The patch also solves the original problem.
OK for trunk, and thanks a lot for the patch!
Thomas