www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20074] New: header file generation doesn't include attributes

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

          Issue ID: 20074
           Summary: header file generation doesn't include attributes with
                    CallExp
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kubo39 gmail.com

Tested dmd version: 2.079.1 / 2.087.0

Input:

---
// dmd -c -Hf=hdrgenbug.di hdrgenbug.d

class C
{
    this()  safe
    {
        ()  trusted
        {
        } ();
    }
}
---

Output:

---
class C
{
         safe this()
        {
                ()
                {
                }
                ();
        }
}
---

--
Jul 22 2019