https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109559

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
So the 2nd hunk tests OK but the first for example runs into

FAIL: gcc.dg/Wfree-nonheap-object-4.c  (test for warnings, line 19)

where we explicitly seem to expect the warning when the system header code
is inlined into non-system-header context.

That's btw the same that happens for the testcase in this bug - we inline
the has_trivial_copy_and_destroy into integrate () which isn't in a
system header.

So it seems this was a deliberate choice ... which would mean the bug at
hand is INVALID.  (-Wno-system-headers has no effect)

Reply via email to