[Issue 9987] New: Declaring struct ModuleInfo should be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 24 21:28:45 PDT 2013
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 at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list