<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
procvar:=@proc_bool; ?</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<div id="id-980bd43c-244b-445e-bab1-d32f47b1f67f" class="ms-outlook-mobile-reference-message">
<div style="font-family: sans-serif; font-size: 13.2pt; color: rgb(0, 0, 0);"><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg"><strong>From:</strong> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of Rainer Stratmann <rainerstratmann@t-online.de><br>
<strong>Sent:</strong> Tuesday, May 5, 2020, 4:05 PM<br>
<strong>To:</strong> FPC-Pascal users discussions<br>
<strong>Subject:</strong> [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4<br>
</div>
<br>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Compiled with FPC 3.0.4 there is an access violation when executing procvar;
<br>
Compiled with FPC 2.6.4 it works for a long time.<br>
<br>
Did I overlooked something?<br>
<br>
Mode: MObjFPC<br>
<br>
type<br>
 t_funcboolean = function : boolean;<br>
var<br>
 procvar : t_funcboolean;<br>
<br>
function proc_bool : t_funcboolean;<br>
begin<br>
end;<br>
<br>
begin<br>
 procvar := proc_bool;<br>
 procvar; // -> access violation with FPC 3.0.4<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div>
</span></font><br>
</div>
</body>
</html>