On Thu, Feb 06, 2020 at 03:27:29PM -0500, David Malcolm wrote: > gcc/testsuite/ChangeLog: > PR analyzer/93212 > * g++.dg/analyzer/analyzer.exp: New subdirectory and .exp suite. > * g++.dg/analyzer/malloc.C: New test. > * g++.dg/analyzer/pr93212.C: New test.
The test FAILs with c++11: .../gcc/testsuite/g++.dg/analyzer/pr93212.C:4:1: error: 'lol' function uses 'auto' type specifier without trailing return type .../gcc/testsuite/g++.dg/analyzer/pr93212.C:4:1: note: deduced return type only available with '-std=c++14' or '-std=gnu++14' Fixed thusly, regtested on x86_64-linux, committed to trunk as obvious. 2020-02-13 Jakub Jelinek <ja...@redhat.com> * g++.dg/analyzer/pr93212.C: Require c++14 rather than c++11. --- gcc/testsuite/g++.dg/analyzer/pr93212.C +++ gcc/testsuite/g++.dg/analyzer/pr93212.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile { target c++14 } } #include <iostream> auto lol() Jakub