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

          Issue ID: 18099
           Summary: betterC check throw statements error!
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

============ code ==============
struct TypePool {
        struct SliceType {
                this(SliceType ) {}
                ~this() {}
        }
        struct {
                auto slice(){
                        SliceType _slice ;
                        return _slice ;
                }
        }
}
================================

dmd -betterC app.d 
Error: Cannot use throw statements with -betterC

--

Reply via email to