[odb-users] internal compiler error in pointer-traits.hxx
astek.rbasset
astek.rbasset at tisseo.fr
Mon Dec 2 10:32:13 EST 2013
Hi Boris,
Thanks a lot for this diagnostic !
You're right, well-compiled files has no boost::shared_ptr<const ?> use !
Indeed, linux compiles with libodb-2.2.so and libboost_system.so.5, which seems to be older...
I'll remove temporarily the const keyword to go further with my project.
All *.hpp is compiled !
Thanks a lot !
Rodolphe
-----Message d'origine-----
De : Boris Kolpackov [mailto:boris at codesynthesis.com]
Envoyé : lundi 2 décembre 2013 15:18
À : astek.rbasset
Cc : odb-users at codesynthesis.com
Objet : Re: [odb-users] internal compiler error in pointer-traits.hxx
Hi Rodolphe,
Ok, I've managed to reproduce the crash on both Windows and Linux.
The problem is with the combination of the const pointed-to object:
boost::shared_ptr<const LineSpot> _lineSpot;
And Boost 1.55.0. That is, if I remove const from the above line, everything compiles fine. Similarly, if I use an earlier version of Boost (I tried 1.52.0) leaving const in place, everything compiles fine as well.
I am still going to investigate further (and hopefully fix) this strange combination. In the meantime you can use these two changes as potential workarounds.
Boris
More information about the odb-users
mailing list