https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91955
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Here's what I'm proposing: diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C b/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C index 8f5e7da2c2e..8e2491ca2b3 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C @@ -1,7 +1,7 @@ -/* PR/tree-optimization/84480 - bogus -Wstringop-truncation despite +/* PR tree-optimization/84480 - bogus -Wstringop-truncation despite assignment with an inlined string literal { dg-do compile } - { dg-options "-O2 -Wstringop-truncation --param early-inlining-insns=14" } */ + { dg-options "-O2 -Wstringop-truncation" } */ #include <string.h> @@ -9,7 +9,7 @@ template <size_t N> class GoodString { public: - GoodString (const char *s, size_t slen = N) + __attribute__ ((always_inline)) GoodString (const char *s, size_t slen = N) { if (slen > N) slen = N; @@ -53,7 +53,7 @@ template <size_t N> class BadString1 { public: - BadString1 (const char *s, size_t slen = N) + __attribute__ ((always_inline)) BadString1 (const char *s, size_t slen = N) { if (slen > N) slen = N;