www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: shammah.chancellor gmail.com


--- Comment #0 from Shammah Chancellor <shammah.chancellor 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: -------
Nov 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11423


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-11-03 00:08:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2710

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



--- Comment #2 from github-bugzilla puremagic.com 2013-11-03 00:48:31 PDT ---
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

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


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


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