- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code:
[cpp]
struct B
{
B () = default;
virtual ~B () = default;
};
struct D : public B
{
virtual ~D () = default;
};
[/cpp]
generates this warning:
warning #809: exception specification for virtual function "D::~D" is incompatible with that of overridden function "B::~B"
when compiled with: icl /c /Qstd=c++11
I believe this warning is in error since the defaulted destructors should have the same exception specification.
I'm using the latest Intel C++ Composer XE SP1 Update 1 (14.0.1.139).
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes this does look like a spurious warning. I have entered this in our internal bug database as DPD200248506.
thank you for reporting it.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I see DPD200248506 listed as fixed in Update 2 (https://software.intel.com/en-us/articles/intel-composer-xe-2013-compilers-sp1-fixes-list), however that warning persisted, even in Update 3 and 2015 Beta. Could you verify that?
Thanks,
Ricardo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I gave you the wrong tracking number. This is actually DPD200250258 which is still open.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an update to this issue. it is fixed in the 16.0 beta. If you'd like to join our beta program, please see Intel® Parallel Studio XE 2016 Beta program has begun
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am still getting this with 16.0 release 2016.0.110
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can also reproduce this in version 16.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page