Summary: Import statements are order dependent; should be order
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD

In DMD 2.032, the order of import statements seems to be important.
Specifically, with regard to cyclic import statements. Below is a simple test
case using two files winapi.d and wincom.d

module winapi;
public import wincom;   // If the import is here, winapi does not compile
public import;
//public import wincom; // If the import is here, winapi compiles

module wincom;
public import winapi; 
public import;
HRESULT hresult;

When compiling winapi, wincom errors are generated:
wincom.d(6): Error: identifier 'HRESULT' is not defined
wincom.d(6): Error: HRESULT is used as a type
wincom.d(6): Error: variable wincom.hresult voids have no value

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to