Thread overview
[Issue 9692] New: __traits(allMembers) fails on module without a package
Mar 11, 2013
Andrej Mitrovic
Mar 11, 2013
Andrej Mitrovic
Apr 05, 2013
Kenji Hara
March 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9692

           Summary: __traits(allMembers) fails on module without a package
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: andrej.mitrovich@gmail.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-03-11 16:47:59 PDT ---
module test;
import dir.other;
pragma(msg, __traits(allMembers, dir.other));  // ok

import other;
pragma(msg, __traits(allMembers, other));  // ng

void main(){ }

--- 

module other;
int j;

---

module dir.other;
int j;


$ rdmd test.d
> Error: import other has no members

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9692


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-03-11 16:54:02 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1739

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9692



--- Comment #2 from github-bugzilla@puremagic.com 2013-04-05 05:03:38 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c29aaef47e0777c86ecf45d078e4d536981d4049 Fixes Issue 9692 - allMembers trait should work on module without a package.

https://github.com/D-Programming-Language/dmd/commit/5b7fdf3f45c4e960847f307c55dc598bcd3d4045 Merge pull request #1739 from AndrejMitrovic/Fix9692

Issue 9692 - allMembers trait should work on module without a package.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9692


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9692



--- Comment #3 from github-bugzilla@puremagic.com 2013-04-08 04:11:13 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ac0eaae07c4fae7d47542ed8a4440a830129d3ae Fixup test-case for Issue 9692.

https://github.com/D-Programming-Language/dmd/commit/cb977805169e4042a9f5b80df4d75de222c83460 Merge pull request #1869 from AndrejMitrovic/Fixup9692

Fixup test-case for Issue 9692.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------