<HTML>
I should probably add that this bug was first reported here (I forgot about it):<br>
<br>
https://bugs.freepascal.org/view.php?id=33184<br>
<br>
My own patch submission to fix said bug is effectively a duplicate of #33184, and #33184 is related to #32781, if anyone is willing to set up those relationships in the bug tracker.<br>
<br>
Gareth aka. Kit<br>
<br>
<br>
<br>
<span style="font-weight: bold;">On Sun 01/04/18 02:07 , "J. Gareth Moreton" gareth@moreton-family.com sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT:0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Hi everyone,<br>
<br>
Sorry this took so long. There was a bug in my "vectorcall" submission in that if you specified "vectorcall" on a method under Linux (it might have been specifically a virtual method), it stored Self in RCX instead of RDI, rather than silently ignoring the Windows-only calling convention.<br>
<br>
Patch is here: https://bugs.freepascal.org/view.php?id=33542<br>
<br>
The fix was surprisingly simple - it was an oversight in the "x86_64_use_ms_abi" function - all it took was the removal of a single keyword.<br>
<br>
Compilation was tested under Ubuntu 16.04 (in VirtualBox) and Windows 10 and the vectorcall tests in "tests/test/cg" run without error.<br>
<br>
Gareth aka. Kit<span style="" id="showSection_28354"></span>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a><br>
<br>
</blockquote></HTML>