www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9663] New: [REG2.063a] ICE caused by issue 7444 change.

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

           Summary: [REG2.063a] ICE caused by issue 7444 change.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-03-07 16:55:45 PST ---
From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c13

I have tried this change, and now the first test case of this ER:

int[100] foo() {
    int[100] a;
    return a;
}
void main() {
    int[10_000] a, b;
    auto c = new int[10_000];
    a = 1;
    a = b;
    a = c;
    auto d = foo();
}

gives a ICE:

temp.d(8): Warning: explicit element-wise assignment (a)[] = 1 is better than a
= 1
temp.d(10): Warning: explicit element-wise assignment (a)[] = (c)[] is better
than a = c
Assertion failure: '0' on line 1193 in file 'glue.c'

------------------------
From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c14

Smaller test case:

void main() {
    int[1] a;
    a = 1;
}

------------------------
From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c16

 What version and compiler switch do you use? I cannot reproduce the ICE.

I am using the GIT head compiler, I have downloaded and compiled dmd few hours ago, after this patch was merged. I am on Windows 32 bit, and I have compiled the code with: dmd -wi test.d -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 07 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9663


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-03-07 16:59:12 PST ---
https://github.com/D-Programming-Language/dmd/pull/1727

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



--- Comment #2 from github-bugzilla puremagic.com 2013-03-07 21:05:55 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/978aeaec777c7445634476877eb088db3b9d46bc
fix Issue 9663 - [REG2.063a] ICE caused by issue 7444 change.

https://github.com/D-Programming-Language/dmd/commit/40424680afd81ada506334550ef63c5fd76265b8
Merge pull request #1727 from 9rnsr/fix9663

Issue 9663 - [REG2.063a] ICE caused by issue 7444 change.

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


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: -------
Mar 07 2013