www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9987] New: Declaring struct ModuleInfo should be allowed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9987

           Summary: Declaring struct ModuleInfo should be allowed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-04-24 21:28:42 PDT ---
By recent dmd commit 0b5641e, the compiler behavior for declaring a struct
named 'ModuleInfo' in user module has changed.

After https://github.com/D-Programming-Language/dmd/commit/0b5641e ,

Code:
    struct ModuleInfo {}
    void main() {}
Compiles with:
    dmd -o- test
Outputs:
    Error: struct ModuleInfo only object.d can define this reserved struct name

I think this is unnecessary limitation.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9987


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-04-24 21:53:45 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1932

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9987



--- Comment #2 from github-bugzilla puremagic.com 2013-04-25 09:14:19 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6dcb46b35c0a845ca13e967875ba2d04473c407f
fix Issue 9987 - Declaring struct ModuleInfo should be allowed

https://github.com/D-Programming-Language/dmd/commit/cb7b1f5c2a237eaefd0622da6072a59e11cfb42e
Merge pull request #1932 from 9rnsr/fix9987

Issue 9987 - Declaring struct ModuleInfo should be allowed

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 25 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9987


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: -------
Apr 26 2013