diff --git a/m4/gccwarn.m4 b/m4/gccwarn.m4 index 13f770ccc..091006af7 100644 --- a/m4/gccwarn.m4 +++ b/m4/gccwarn.m4 @@ -21,6 +21,7 @@ AC_DEFUN([CF_GXX_WARNINGS], cat > conftest.$ac_ext < +#include #include // From GCC bug 106159 @@ -29,6 +30,13 @@ struct left { virtual ~left() {} }; struct right { virtual ~right() {} }; struct both: public left, public right {}; +// For GCC bug 108860 +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108860 +void test(std::vector& v) +{ + v.insert(v.begin(), 12); +} + int main(int argc, char *argv[[]]) { // This string comparison is here to detect superfluous