www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12061] New: Refused array append with struct with void field

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12061

           Summary: Refused array append with struct with void field
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2014-02-02 08:06:57 PST ---
struct Foo { int a = void; }
void main() {
    Foo[] arr;
    arr ~= Foo();
}


dmd 2.065.0b2 gives me:

...>dmd -O test.d
test.d(4): Error: variable _TMP0 used before set

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 02 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12061


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |normal


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-02 15:39:52 PST ---
Same error occurs with 2.057-2.064,

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