bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] SVN 991 compilation error


From: David B. Lamkins
Subject: [Bug-apl] SVN 991 compilation error
Date: Thu, 10 Aug 2017 10:17:28 -0700
User-agent: Mutt/1.8.3 (2017-05-23)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]