www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14502] New: dmd -O optimization breaks app

https://issues.dlang.org/show_bug.cgi?id=14502

          Issue ID: 14502
           Summary: dmd -O optimization breaks app
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: chalucha gmail.com

I've come across a problem that when -O is used, app which normally works end
up with segfault.

It's this benchmark:
https://github.com/kostya/benchmarks/blob/master/havlak/havlak.d

When compiled with: dmd -ofhavlak_d -O -release -inline havlak.d
It segfaults at least for me (it seams to work for repository author according
to test results)

DMD64 D Compiler v2.067.0

Core(TM) i5-2500K CPU   3.30GHz GenuineIntel GNU/Linux

GDC, LDC and DMD without -O are working ok.

I'm trying to dustmite the problem and I'll post the results.

--
Apr 25 2015