View Issue Details

IDProjectCategoryView StatusLast Update
0003304Spring engineGeneralpublic2012-10-16 20:42
Reporterabma Assigned Toabma  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version91.0.1+git 
Summary0003304: compile warnings: "deleting object of polymorphic class type... which has non-virtual destructor" with gcc 4.7
Descriptionwarning: deleting object of polymorphic class type ‘CAirBaseHandler’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
Steps To Reproducesee validation-slave
Additional Informationoutput of
make -j4 >/dev/null

http://paste.springfiles.com/view/raw/922badfe
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2012-10-16 01:19

developer   ~0009258

Odd, none of the classes it complains about are actually polymorphic. The only thing they have in common is that all of them derive from boost::noncopyable...

abma

2012-10-16 02:43

administrator   ~0009261

Last edited: 2012-10-16 02:43

only common thing i see is creg, as it seems to add/change/...? some virtual functions?

Kloot

2012-10-16 15:04

developer   ~0009263

That's probably it, see etherpad. :)

abma

2012-10-16 17:38

administrator   ~0009264

for the docs:

replace CR_DECLARE by CR_DECLARE_STRUCT in all classes which generate this warning (see comments in creg.h about the difference)

abma

2012-10-16 17:39

administrator   ~0009265

if nobody already did it, i'll fix that

abma

2012-10-16 20:42

administrator   ~0009267

https://github.com/spring/spring/commit/a9f97665f79a5046dbd0eccfccdac4a6cde6c6a5

Issue History

Date Modified Username Field Change
2012-10-15 23:51 abma New Issue
2012-10-16 01:19 Kloot Note Added: 0009258
2012-10-16 02:43 abma Note Added: 0009261
2012-10-16 02:43 abma Note Edited: 0009261
2012-10-16 02:43 abma Note Edited: 0009261
2012-10-16 15:04 Kloot Note Added: 0009263
2012-10-16 17:38 abma Note Added: 0009264
2012-10-16 17:39 abma Assigned To => abma
2012-10-16 17:39 abma Status new => assigned
2012-10-16 17:39 abma Note Added: 0009265
2012-10-16 20:42 abma Note Added: 0009267
2012-10-16 20:42 abma Status assigned => resolved
2012-10-16 20:42 abma Resolution open => fixed