Discussion:
[Bug-apl] Got this error while using clang++ compiler @SVN 903
Christian Robert
2017-03-17 19:05:25 UTC
Permalink
mv -f .deps/apl-Quad_SVx.Tpo .deps/apl-Quad_SVx.Po
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/include -g -O2 -MT apl-Svar_record.o -MD -MP -MF .deps/apl-Svar_record.Tpo -c -o apl-Svar_record.o `test -f 'Svar_record.cc' || echo './'`Svar_record.cc
mv -f .deps/apl-PrimitiveFunction.Tpo .deps/apl-PrimitiveFunction.Po
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/include -g -O2 -MT apl-Symbol.o -MD -MP -MF .deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' || echo './'`Symbol.cc
ScalarFunction.cc:97:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
: value_Z(*(Value *)0),
^~~~~~~~~~~
ScalarFunction.cc:159:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
: value_Z(*(Value *)0),
^~~~~~~~~~~
2 errors generated.
Makefile:2762: recipe for target 'apl-ScalarFunction.o' failed
make[3]: *** [apl-ScalarFunction.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Christian Robert
2017-03-18 04:57:01 UTC
Permalink
I forgot to mention that "clang" was updated about 2 days ago on Fedora 25, and it was compiling fine before that update.

Xtian.
Post by Christian Robert
mv -f .deps/apl-Quad_SVx.Tpo .deps/apl-Quad_SVx.Po
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/include -g -O2 -MT apl-Svar_record.o -MD -MP -MF .deps/apl-Svar_record.Tpo -c -o apl-Svar_record.o `test -f 'Svar_record.cc' || echo './'`Svar_record.cc
mv -f .deps/apl-PrimitiveFunction.Tpo .deps/apl-PrimitiveFunction.Po
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/include -g -O2 -MT apl-Symbol.o -MD -MP -MF .deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' || echo './'`Symbol.cc
ScalarFunction.cc:97:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
: value_Z(*(Value *)0),
^~~~~~~~~~~
ScalarFunction.cc:159:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
: value_Z(*(Value *)0),
^~~~~~~~~~~
2 errors generated.
Makefile:2762: recipe for target 'apl-ScalarFunction.o' failed
make[3]: *** [apl-ScalarFunction.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Juergen Sauermann
2017-03-18 12:56:04 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Xtian,<br>
<br>
thanks, fixed in <b>SVN 906</b>.<br>
<br>
/// Jürgen<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/18/2017 05:57 AM, Christian
Robert wrote:<br>
</div>
<blockquote
cite="mid:7fee359b-f527-3acf-5bd1-***@polymtl.ca"
type="cite">I forgot to mention that "clang" was updated about 2
days ago on Fedora 25, and it was compiling fine before that
update.
<br>
<br>
Xtian.
<br>
<br>
On 2017-03-17 15:05, Christian Robert wrote:
<br>
<blockquote type="cite">mv -f .deps/apl-Quad_SVx.Tpo
.deps/apl-Quad_SVx.Po
<br>
clang++ -DHAVE_CONFIG_H -I. -I..    -Werror -Wall -I sql
-I/usr/include    -g -O2 -MT apl-Svar_record.o -MD -MP -MF
.deps/apl-Svar_record.Tpo -c -o apl-Svar_record.o `test -f
'Svar_record.cc' || echo './'`Svar_record.cc
<br>
mv -f .deps/apl-PrimitiveFunction.Tpo
.deps/apl-PrimitiveFunction.Po
<br>
clang++ -DHAVE_CONFIG_H -I. -I..    -Werror -Wall -I sql
-I/usr/include    -g -O2 -MT apl-Symbol.o -MD -MP -MF
.deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' ||
echo './'`Symbol.cc
<br>
ScalarFunction.cc:97:14: error: binding dereferenced null
pointer to reference has undefined behavior
[-Werror,-Wnull-dereference]
<br>
   : value_Z(*(Value *)0),
<br>
             ^~~~~~~~~~~
<br>
ScalarFunction.cc:159:14: error: binding dereferenced null
pointer to reference has undefined behavior
[-Werror,-Wnull-dereference]
<br>
   : value_Z(*(Value *)0),
<br>
             ^~~~~~~~~~~
<br>
2 errors generated.
<br>
Makefile:2762: recipe for target 'apl-ScalarFunction.o' failed
<br>
make[3]: *** [apl-ScalarFunction.o] Error 1
<br>
make[3]: *** Waiting for unfinished jobs....
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>

Loading...