https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108939
--- Comment #2 from Anton Nikolaevsky ---
Indeed, with the sample code that I've originally reported the presence of the
flag -std=xxx does not matter. The fact is I started from the following a bit
more complex code:
#include
#include
#d
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: bezkrovatki at gmail dot com
Target Milestone: ---
GCC 10 and 11 emit the -Wstringop-truncation warning on the following
simplified sample
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bezkrovatki at gmail dot com
Consider the following sample code (test.cpp):
struct IA
{
virtual ~IA() {}
};
struct IB
{
virtual ~IB