Bug 11423 – Error: new can only create structs, dynamic arrays or class objects, not _error_'s

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-02T16:32:00Z
Last change time
2013-11-03T00:48:44Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
shammah.chancellor

Comments

Comment #0 by shammah.chancellor — 2013-11-02T16:32:15Z
void main() { auto foo = new shared Foo(); } dmd produces: test.d(3): Error: undefined identifier shared(Foo) test.d(3): Error: new can only create structs, dynamic arrays or class objects, not _error_'s Which I certainly hope would be true. :D I don't want new to be producing any errors for me.
Comment #1 by k.hara.pg — 2013-11-03T00:08:59Z
Comment #2 by github-bugzilla — 2013-11-03T00:48:31Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8121cf8ed5cb41d6905a0ac3169c3f397e58dab5 fix Issue 11423 - Error: new can only create structs, dynamic arrays or class objects, not _error_'s https://github.com/D-Programming-Language/dmd/commit/dc6628429ed8af254f80c86845d9237ebf5daf00 Merge pull request #2710 from 9rnsr/fix11423 Issue 11423 - Error: new can only create structs, dynamic arrays or class objects, not _error_'s