www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23888] New: ImportC: VLAs (Variable Length Arrays) are not

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

          Issue ID: 23888
           Summary: ImportC: VLAs (Variable Length Arrays) are not
                    supported
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

Reported by Patrick Schluter:

- VLA (variable length arrays) do not work. 
Error: variable `ilen` cannot be read at compile time
Even replacing VLA with alloca() does not work/
Error: undefined identifier `__builtin_alloca`

--
May 05 2023