www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19734] New: isDataseg returns true for non-static declarations

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

          Issue ID: 19734
           Summary: isDataseg returns true for non-static declarations
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

In the following example:

class A
{
  extern
  {
    void f() { int a; }
  }
}

All declarations enclosed inside 'extern' are marked as STCextern, even the
'this' parameter, making isDataseg() wrongly return true.

--
Mar 13 2019