[Bug 283] Wrong code with -O, possible cleanup_point_expr bug

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Thu Jan 25 01:17:40 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=283

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
The above reduced test fails when compiled with: 'gdc -frelease -O'

It runs just fine when compiling with: 'gdc -frelease'

An earlier, more complex version of this test passed when built with -O2, but
failed with -O3.

When compiling the original source module (sdtor.d), it always succeeds
regardless of what optimization flags you pass.

So, the same program ran in isolation can do something different than when
compiled with a larger codebase.  Making it a rather peculiar optimization bug.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list