[Issue 8213] Incorrect error message with pointer to ubyte[] and front

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 00:34:24 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8213


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

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


--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-24 00:34:19 PDT ---
(In reply to comment #2)
> The error gives the correct type now:
> ---
> main.d(12): Error: template std.array.front does not match any function
> template declaration. Candidates are:
> <phobos path>\std\array.d(584):        std.array.front(T)(T[] a) if
> (!isNarrowString!(T[]) && !is(T[] == void[]))
> <phobos path>\std\array.d(605):        std.array.front(T)(T[] a) if
> (isNarrowString!(T[]))
> <phobos path>\std\array.d(584): Error: template std.array.front cannot deduce
> template function from argument types !()(ubyte[]*)
> main.d(21): Error: template instance main.S!(ubyte[]) error instantiating
> main.d(22): Error: not a property s.front
> ---

In 2.063a, error message with UFCS issues are got fixed. So I'll close this.

Currently automatic pointer dereference is not supported in UFCS name look up.
For the issue, I'll mark issue 8597 as enhancement.

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


More information about the Digitalmars-d-bugs mailing list