www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21837] New: [Home]

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

          Issue ID: 21837
           Summary: [Home]
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P3
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: larry.jordan cox.net

When I try to recompile a betterC application (developed under 2.095.0), I get
the following NEW error. I do not use expceptions. 

dmd  -I/home/larry/Github/escheme-dbc/src -c 
-od=/home/larry/Github/escheme-dbc/src -betterC -O -release -inline
-boundscheck=off /home/larry/Github/escheme-dbc/src/main.d
/home/larry/dlang/dmd-2.096.0/linux/bin64/../../src/druntime/import/core/internal/lifetime.d(35):
Error: Cannot use try-catch statements with -betterC
/home/larry/dlang/dmd-2.096.0/linux/bin64/../../src/druntime/import/core/internal/lifetime.d(57):
Error: template instance `core.internal.lifetime.emplaceRef!(Vector!(void
function()), Vector!(void function()), int).emplaceRef.S.__ctor!()` error
instantiating
/home/larry/dlang/dmd-2.096.0/linux/bin64/../../src/druntime/import/core/lifetime.d(61):
       instantiated from here: `emplaceRef!(Vector!(void function()),
Vector!(void function()), int)`

I do not use exceptions anywhere in this application. The application compiles
find under 2.965.0.  I pressume the aforementioned package DID star using
exceptions and now is invalid for betterC use.

--
Apr 17 2021