This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid infinite loop with duplicate anonymous union fields
Hi,
Thanks for submitting the patch.
Bogdan Harjoc <harjoc@gmail.com> writes:
> With fresh git sources and contrib/gcc_update the tests pass:
>
> === gcc Summary ===
>
> # of expected passes 133500
> # of expected failures 422
> # of unsupported tests 2104
>
> gcc-build/gcc/xgcc version 9.0.0 20180730 (experimental) (GCC)
>
> I wasn't able to reduce the input to avoid including <time.h> and as
> it only reproduces without -save-temps, it's not clear how to write a
> testcase for this one.
Adding -save-temps to the options is OK. You just need to add:
/* { dg-options "-save-temps" } */
to the test file, and put it in somewhere like gcc.dg.
FWIW, the failure reproduces for me with #include <time.h> replaced by:
#define foo(a)
Seems it has to be a function macro that has an argument called "a".
No idea why :-)
Richard