www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24153] New: Inliner breaks -betterC by requiring TypeInfo

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

          Issue ID: 24153
           Summary: Inliner breaks -betterC by requiring TypeInfo
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ryuukk.dev gmail.com

The following code: 

https://gist.github.com/ryuukk/4f526503cd24f4f5e4b16ef823b523d1

(i tried to strip as much code as possible)

Fail to compile:

```
_.d(1): Error: `TypeInfo` cannot be used with -betterC                          
struct InvBoneBindInfo                                                          
^     
```

dmd: `dmd -betterC -inline -verrors=context -run _.d`


version: 2.105.2

--
Sep 23 2023