[Ad-dev] [ADIC] #37: common.C: compiler warnings about uses of OA_ptr

ADIC trac at mcs.anl.gov
Tue Jan 26 15:57:24 CST 2010


#37: common.C:  compiler warnings about uses of OA_ptr
---------------------------------+------------------------------------------
 Reporter:  utke                 |       Owner:     
     Type:  defect               |      Status:  new
 Priority:  minor                |   Milestone:     
Component:  Configuration/Build  |     Version:     
 Keywords:                       |  
---------------------------------+------------------------------------------
 g++ -c -g -O2 -ftemplate-depth-50 -g -DHAVE_CONFIG_H -DOA_OPEN64
 -DOA_IRHANDLETYPE_UL  -DHAVE_CONFIG_H -DOA_OPEN64 -DOA_IRHANDLETYPE_UL -I.
 -I.. -I/disks/utke/Argonne/Dev/RoseFE/ADIC
 -I/disks/utke/Argonne/Dev/RoseFE/ADIC/runtime
 -I/disks/utke/Apps/rose_inst/include -I/home/derivs/software/linux-
 Ubuntu_8.04-x86_64/boost_1_36_0/include
 -I/disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include
 common.C
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/Utils/OA_ptr.hpp:
 In member function ‘void OA::OA_ptr<T>::decrementCurrPtr() [with T =
 OA::OutputBuilder]’:
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/Utils/OA_ptr.hpp:73:
 instantiated from ‘OA::OA_ptr<T>& OA::OA_ptr<T>::operator=(const
 OA::OA_ptr<T>&) [with T = OA::OutputBuilder]’
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/OABase/Annotation.hpp:37:
 instantiated from here
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/Utils/OA_ptr.hpp:332:
 warning: possible problem detected in invocation of delete operator:
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/Utils/OA_ptr.hpp:332:
 warning: invalid use of incomplete type ‘struct OA::OutputBuilder’
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/OABase/Annotation.hpp:24:
 warning: forward declaration of ‘struct OA::OutputBuilder’
 /disks/utke/Argonne/Dev/RoseFE/OpenAD/OpenAnalysis/x86_64-Linux/include/OpenAnalysis/Utils/OA_ptr.hpp:332:
 note: neither the destructor nor the class-specific operator delete will
 be called, even if they are declared when the class is defined.

-- 
Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/37>
ADIC <http://trac.mcs.anl.gov/projects/ADIC>
ADIC: Automatic Differentiation for C and C++


More information about the Ad-dev mailing list