[Issue 11423] New: Error: new can only create structs, dynamic arrays or class objects, not _error_'s

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 2 16:32:17 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11423

           Summary: Error: new can only create structs, dynamic arrays or
                    class objects, not _error_'s
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: shammah.chancellor at gmail.com


--- Comment #0 from Shammah Chancellor <shammah.chancellor at gmail.com> 2013-11-02 16:32:15 PDT ---
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.

-- 
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