https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86271 --- Comment #1 from pkoning at gcc dot gnu.org --- https://gcc.gnu.org/ml/gcc/2018-06/msg00228.html is the discussion and mentions a possible fix.