Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7644 Discussions

GCC "-Wnon-virtual-dtor" side effect on ICC "#2304 non-explicit single arg ctor"

olzhas_r_
New Contributor I
207 Views
struct A { A(int a) {} };

Running with GCC's "-Wnon-virtual-dtor" triggers ICC #2304 warning about non-explicit single arg ctor (probably from "Weffc++").
 

0 Kudos
1 Solution
Judith_W_Intel
Employee
207 Views

 

I can reproduce this problem in 16.0 but it looks like this is fixed in our latest release (17.0).

The problem was previously reported in our internal tracking system as DPD200361597 which corresponds to Quad number Q6000068444.

As a workaround you can disable the diagnostic with the option -diag-disable:2304.

Sorry for the inconvenience.

Judy

View solution in original post

4 Replies
Judith_W_Intel
Employee
208 Views

 

I can reproduce this problem in 16.0 but it looks like this is fixed in our latest release (17.0).

The problem was previously reported in our internal tracking system as DPD200361597 which corresponds to Quad number Q6000068444.

As a workaround you can disable the diagnostic with the option -diag-disable:2304.

Sorry for the inconvenience.

Judy

olzhas_r_
New Contributor I
207 Views
Thanks Judy! Is there a place (bug-tracker) to lookup already reported bugs for the compiler versions? (to avoid duplications in future)
Judith_W_Intel
Employee
207 Views

 

Sorry but we don't allow external users to access our bug tracking database (for privacy/confidentiality reasons).

 

olzhas_r_
New Contributor I
207 Views

This is fixed in icc 17.

Thanks!

Reply