On 01/09/2018 02:13 PM, David Malcolm wrote:
> Whilst developing the location-wrapper patch kit, I accumulated various
> source files for which my work-in-progress patched-cc1plus had different
> behavior to an unpatched cc1plus: some of these were crashes, others
> were erroneous diagnostics.
>
> All of these are now fixed, but it seems appropriate to capture them
> in our testsuite, hence this patch.
>
> Tested in conjunction with the patch kit;
> adds 12 PASS, 2 UNSUPPORTED and 3 XFAILs to g++.sum.
>
> The XFAILs are due to the use of dg-excess-errors in
> g++.dg/wrappers/cp-stdlib.C.
> This source file is full of syntax errors, but used to ICE my cc1plus
> *somewhere* in error recovery, and I wasn't able to minimize it further
> at the time. I fixed the ICE, but it seems worth keeping as a test case.
> I checked hacking in an ICE, and dg-excess-errors will FAIL on it
> (rather than merely XFAIL, on all of the syntax errors).
>
> OK for trunk?
>
> gcc/testsuite/ChangeLog:
> PR c++/43486
> * g++.dg/wrappers: New subdirectory.
> * g++.dg/wrappers/README: New file.
> * g++.dg/wrappers/alloc.C: New test case.
> * g++.dg/wrappers/cow-istream-string.C: New test case.
> * g++.dg/wrappers/cp-stdlib.C: New test case.
> * g++.dg/wrappers/sanitizer_coverage_libcdep_new.C: New test case.
> * g++.dg/wrappers/wrapper-around-type-pack-expansion.C: New test
> case.
OK.
jeff