|
Boost : |
From: pbristow_at_[hidden]
Date: 2019-10-15 09:23:43
> -----Original Message-----
> From: Boost <boost-bounces_at_[hidden]> On Behalf Of Emil Dotchevski via
> Boost
> Sent: 14 October 2019 20:29
> To: Boost <boost_at_[hidden]>
> Cc: Emil Dotchevski <emildotchevski_at_[hidden]>
> Subject: Re: [boost] Warning from Boost.Exception
>
> On Mon, Oct 14, 2019 at 9:36 AM Paul A Bristow via Boost <
> boost_at_[hidden]> wrote:
>
> > Using Clang 9 on Windows b2 toolset-clang-linux cxxstd=2a .
> >
> > I am seeing lots of these warnings
> >
> > In file included from ..\..\..\boost/test/included/unit_test.hpp:23:
> > In file included from ..\..\..\boost/test/impl/execution_monitor.ipp:37:
> > In file included from
> > ..\..\..\boost/exception/diagnostic_information.hpp:11:
> > ..\..\..\boost/exception/info.hpp:134:21: warning: delete called on
> > non-final 'boost::exception_detail::error_info_container_impl'
> > that has virtual functions but non-virtual destructor
> >
> > [-Wdelete-non-abstract-non-virtual-dtor]
> > delete this;
> > ^
> > It seems that trying to supress is ineffective with
> >
> > -Wno-delete-non-abstract-non-virtual-dtor
> >
> > Perhaps by design?
> >
> >
> > https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference.
> > html#wdele
> > te-non-abstract-non-virtual-dtor
> > <https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference
> > .html#wdelete-non-abstract-non-virtual-dtor>
> > -Wdelete-non-abstract-non-virtual-dtor
> > <
> > https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference.
> > html>
> >
> > Diagnostic text:
> > warning: delete
> >
> > destructor
> >
> > called on non-final B that has virtual functions but
> > non-virtual destructor -Wdelete-non-virtual-dtor <
> > https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference.
> > html>
> >
> > Some of the diagnostics controlled by this flag are enabled by default.
> > Controls -Wdelete-abstract-non-virtual-dtor
> > <
> > https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference.
> > html>
> > ,
> > -Wdelete-non-abstract-non-virtual-dtor
> > <
> > https://releases.llvm.org/9.0.0/tools/clang/docs/DiagnosticsReference.
> > html>
> > .
> > Should I be concerned about this?
> >
>
> You shouldn't be concerned about this and also you shouldn't be getting warnings.
Thanks, that's reassuring ð
> What platforms, what command line?
Obscure ð - Windows 10, develop branch, Clang 9 using effectively clang-linux (I think I remember that clang-win was the same)
I:\boost\libs\multiprecision\example>b2 toolset=clang cxxstd=2a address-model=64 release
No extra pedantic settings (some other warnings I have suppressed, but this one seems unquietable).
HTH
Paul
Paul A. Bristow
Prizet Farmhouse
Kendal, Cumbria
LA8 8AB UK
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk