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

           Summary: SList cannot have struct elements that have immutable
                    members.
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO <zan77...@nifty.com> 2010-11-09 06:46:42 PST ---
I think this code should be able to work.

-------- main.d --------
import std.container;

struct Data
{
    const int val;
}
void main()
{
    SList!Data list;
}
-------- Result -------- 
$ dmd -run main
..\std\container.d(941): Error: can only initialize c
onst member _payload inside constructor
------------------------

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

Reply via email to