Discussion:
[Bug-apl] SVN 991 compilation error
David B. Lamkins
2017-08-10 17:17:28 UTC
Permalink
Again, this is with:

./configure RATIONAL_NUMBERS_WANTED=yes PERFORMANCE_COUNTERS_WANTED=yes CORE_COUNT_WANTED=-3



clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror -I/usr/include -I/usr/include -g -O2 -MT apl-Value.o -MD -MP -MF .deps/apl-Value.Tpo -c -o apl-Value.o `test -f 'Value.cc' || echo './'`Value.cc
Value.cc:502:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR << " Value: " << reinterpret_cast<Value *>(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Value.cc:502:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR << " Value: " << reinterpret_cast<Value *>(obj)
^~~~~~~~~~~~~~~~
static_cast
Value.cc:570:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR << " Value: " << reinterpret_cast<Value *>(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Value.cc:570:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR << " Value: " << reinterpret_cast<Value *>(obj)
^~~~~~~~~~~~~~~~
static_cast
2 errors generated.
Juergen Sauermann
2017-08-10 17:59:20 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi David,<br>
<br>
thanks, fixed in <b>SVN 902</b>.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 08/10/2017 07:17 PM, David B.
Lamkins wrote:<br>
</div>
<blockquote cite="mid:***@dworkin" type="cite">
<pre wrap="">Again, this is with:

./configure RATIONAL_NUMBERS_WANTED=yes PERFORMANCE_COUNTERS_WANTED=yes CORE_COUNT_WANTED=-3



clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror -I/usr/include -I/usr/include -g -O2 -MT apl-Value.o -MD -MP -MF .deps/apl-Value.Tpo -c -o apl-Value.o `test -f 'Value.cc' || echo './'`Value.cc
Value.cc:502:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Value.cc:502:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~
static_cast
Value.cc:570:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Value.cc:570:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~
static_cast
2 errors generated.


</pre>
</blockquote>
<br>
</body>
</html>
Juergen Sauermann
2017-08-11 10:13:38 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi Peter,<br>
<br>
yes, thanks.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 08/11/2017 12:49 AM, Peter Teeson
wrote:<br>
</div>
<blockquote
cite="mid:ED03311D-1402-4161-8E63-***@icloud.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
You mean <b>svn 992 </b>don’t you?
<div class=""><br class="">
</div>
<div class="">respect…</div>
<div class=""><br class="">
</div>
<div class="">Peter<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 10, 2017, at 1:59 PM, Juergen Sauermann
&lt;<a moz-do-not-send="true"
href="mailto:***@t-online.de" class="">***@t-online.de</a>&gt;
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class=""> <font
class="" face="Helvetica, Arial, sans-serif">Hi David,<br
class="">
<br class="">
thanks, fixed in <b class="">SVN 902</b>.<br class="">
<br class="">
/// Jürgen<br class="">
<br class="">
</font><br class="">
<div class="moz-cite-prefix">On 08/10/2017 07:17 PM,
David B. Lamkins wrote:<br class="">
</div>
<blockquote cite="mid:***@dworkin"
type="cite" class="">
<pre class="" wrap="">Again, this is with:

./configure RATIONAL_NUMBERS_WANTED=yes PERFORMANCE_COUNTERS_WANTED=yes CORE_COUNT_WANTED=-3



clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror -I/usr/include -I/usr/include -g -O2 -MT apl-Value.o -MD -MP -MF .deps/apl-Value.Tpo -c -o apl-Value.o `test -f '<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>' || echo './'`<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>
<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>:502:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>:502:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~
static_cast
<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>:570:45: error: 'reinterpret_cast' to class 'Value *' from its base at non-zero offset 'DynamicObject *' behaves differently from 'static_cast' [-Werror,-Wreinterpret-base-class]
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<a moz-do-not-send="true" href="http://Value.cc" class="">Value.cc</a>:570:45: note: use 'static_cast' to adjust the pointer correctly while downcasting
CERR &lt;&lt; " Value: " &lt;&lt; reinterpret_cast&lt;Value *&gt;(obj)
^~~~~~~~~~~~~~~~
static_cast
2 errors generated.


</pre>
</blockquote>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<br>
</body>
</html>

Loading...