www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21931] New: importC: 'alias time_t = time_t;' cannot alias

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

          Issue ID: 21931
           Summary: importC: 'alias time_t = time_t;' cannot alias itself,
                    use a qualified name to create an overload set
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Code isn't wrong, the parser is swallowing the first identifier.
---
typedef long int __int64_t;
typedef __int64_t time_t;
---

--
May 19