www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9910] New: Scalar op vector is broken.

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

           Summary: Scalar op vector is broken.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ibuclaw ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw ubuntu.com> 2013-04-09 03:10:57 PDT ---
Minimal test:

---
import core.simd;

void main()
{
  float4 a = [1,1,1,1];
  auto works = a + 3;
  auto bug = 3 + a;
}
---

Causes problems in GDC because 'bug' is inferred as an 'int' type.

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


Iain Buclaw <ibuclaw ubuntu.com> changed:

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


--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2013-04-09 03:25:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1879

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


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

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


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



--- Comment #2 from Iain Buclaw <ibuclaw ubuntu.com> 2013-04-09 08:24:04 PDT ---
Pull merged:
https://github.com/D-Programming-Language/dmd/commit/f6d55a9175278b2c950ceab06bc2f48d7ede3766

https://github.com/D-Programming-Language/dmd/commit/0fa0d6d45db8a538e2bdf68653000b543def3f86

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