www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21980] New: importC: _Thread_local allowed as storage class


          Issue ID: 21980
           Summary: importC: _Thread_local allowed as storage class for
                    return type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

This is illegal as per C99 6.7.1-4:
_Thread_local shall not appear in the declaration specifiers of a function

_Thread_local int invalid();

May 26 2021