https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70328
Bug ID: 70328 Summary: default generated destructors cause 'inlining failed' warnings. Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlo at gcc dot gnu.org Target Milestone: --- I'm getting a warning for many many classes along of the lines: ../../../speech/src/xml/catalog_test.cpp:73:7: warning: inlining failed in call to ‘Product::~Product() noexcept (true)’: call is unlikely and code size would grow [-Winline] while there isn't a ~Product() declared at all by me (it's compiler generated). If I add a '~Product() = default', the warning stays. If I add instead '~Product() noexcept { }' the warning goes away. I don't have a small test case yet because any attempts to create that failed so far. First I'd like to hear if there is consensus on that there is something fishy about this warning. Carlo