Thread overview
[Issue 9946] New: A UFCS disallowed in dynamic array allocation
Apr 25, 2013
Kenji Hara
May 02, 2013
yebblies
May 03, 2013
Denis Shelomovskij
May 04, 2013
Kenji Hara
April 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946

           Summary: A UFCS disallowed in dynamic array allocation
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2013-04-16 15:55:57 PDT ---
size_t count(alias x)(int[] haystack) {
    return 0;
}
void main() {
    int[] data;
    auto n1 = count!5(data);          // OK
    auto n2 = data.count!5;           // OK
    auto a1 = new int[count!5(data)]; // OK
    auto a2 = new int[data.count!5];  // Error
}


DMD 2.063alpha gives:

test.d(9): Error: no property 'count!(5)' for type 'int[]'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 25, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Platform|x86                         |All
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-25 02:47:35 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1934

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946



--- Comment #2 from github-bugzilla@puremagic.com 2013-05-02 09:36:12 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bb5c37dda5b7832987b69e1f99839ec24d78fac0 fix Issue 9946 - A UFCS disallowed in dynamic array allocation

`TypeQualified::idents` may have both `Identifier` and `TemplateInstance` objects. It should be treated correctly, as like as `Dsymbol::searchX` and `TypeQualified::resolveHelper`.

https://github.com/D-Programming-Language/dmd/commit/2c5df8da30efdeb37d83d84bb78cee60815f94b2 Merge pull request #1934 from 9rnsr/fix9946

Issue 9946 - A UFCS disallowed in dynamic array allocation

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #3 from yebblies <yebblies@gmail.com> 2013-05-03 04:51:16 EST ---
Off the top of my head I'm unsure if this is applicable to D1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946


Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg@gmail.com


--- Comment #4 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-05-03 22:08:15 MSD ---
This probably was a part of Issue 9883 (second case from description).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9946


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: -------