www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6548] New: [e2ir.c] Problem with ^^ vector op

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

           Summary: [e2ir.c] Problem with ^^ vector op
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2011-08-24 03:04:49 PDT ---
void main() {
    auto _ = [1][] ^^ 2;
}


DMD 2.055beta output:

[1][] ^^ 2
Internal error: e2ir.c 683

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 24 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw ubuntu.com


--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2011-08-26 14:45:20 PDT ---
Ahh, looks like it is leaking PowExp::toElem - didn't notice this as I have it
implemented in GDC.

Best thing to immediately do is implement the missing methods as stubs (I was
intending to move onto backend support and add constant folding/ctfe support
for ^^ operations. :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 26 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548



--- Comment #2 from Iain Buclaw <ibuclaw ubuntu.com> 2011-08-27 13:02:04 PDT ---
Can you see if you can break things in any way after this commit?

https://github.com/D-Programming-Language/dmd/pull/344

Regards
Iain

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548



--- Comment #3 from bearophile_hugs eml.cc 2011-08-31 21:52:12 PDT ---
(In reply to comment #2)

 Regards
 Iain
Thank you for your work. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 31 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #4 from Iain Buclaw <ibuclaw ubuntu.com> 2011-09-07 13:17:21 PDT ---
https://github.com/D-Programming-Language/dmd/pull/344/files


Finalised feature and added test cases.

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



--- Comment #5 from bearophile_hugs eml.cc 2011-09-26 04:28:19 PDT ---
(In reply to comment #2)
 Can you see if you can break things in any way after this commit?
Now this code doesn't crash DMD: void main() { auto _ = [1][] ^^ 2; } But this code doesn't work yet: import std.math; void main() { int[5] a, b; b[] = a[] ^^ 2; } It gives: ...\dmd2\src\phobos\std\math.d(58): Error: module math is in file 'core\stdc\math.d' which cannot be read -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 26 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #6 from bearophile_hugs eml.cc 2011-09-26 09:48:04 PDT ---
Sorry, my Phobos was badly set. Things work now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 26 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6548



--- Comment #7 from bearophile_hugs eml.cc 2011-09-26 09:48:51 PDT ---
https://github.com/D-Programming-Language/dmd/commit/aca624ff20e1cf39d9ca30800f5bc64765974082

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