Thread overview
[Issue 12089] New: std.utf.validate and inout(char[])
Feb 06, 2014
John Colvin
[Issue 12089] std.utf.validate and inout(char[]) failts to compile
Feb 07, 2014
John Colvin
Feb 10, 2014
Kenji Hara
Feb 10, 2014
Kenji Hara
February 06, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089

           Summary: std.utf.validate and inout(char[])
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: john.loughran.colvin@gmail.com


--- Comment #0 from John Colvin <john.loughran.colvin@gmail.com> 2014-02-06 14:40:20 GMT ---
import std.utf;
void foo(inout(char[]) a)
{
        validate(a);
}

/home/space/phujfj/Installations/dmd/include/std/utf.d(954): Error: template
instance std.utf.codeUnitLimit!(const(inout(char)[])) does not match template
declaration codeUnitLimit(S) if (isSomeChar!(ElementEncodingType!S))
/home/space/phujfj/Installations/dmd/include/std/utf.d(956): Error: template
std.utf.decodeImpl cannot deduce function from argument types
!(true)(const(inout(char)[]), ulong), candidates are:
/home/space/phujfj/Installations/dmd/include/std/utf.d(1059):
std.utf.decodeImpl(bool canIndex, S)(auto ref S str, ref size_t index) if (is(S
: const(char[])) || isInputRange!S && is(Unqual!(ElementEncodingType!S) ==
char))
/home/space/phujfj/Installations/dmd/include/std/utf.d(1194):
std.utf.decodeImpl(bool canIndex, S)(auto ref S str, ref size_t index) if (is(S
: const(wchar[])) || isInputRange!S && is(Unqual!(ElementEncodingType!S) ==
wchar))
/home/space/phujfj/Installations/dmd/include/std/utf.d(1264):
std.utf.decodeImpl(bool canIndex, S)(auto ref S str, ref size_t index) if (is(S
: const(dchar[])) || isInputRange!S && is(Unqual!(ElementEncodingType!S) ==
dchar))
/home/space/phujfj/Installations/dmd/include/std/utf.d(2007): Error: template
instance std.utf.decode!(const(inout(char)[])) error instantiating
inouttest.d(4):        instantiated from here: validate!(inout(char)[])
/home/space/phujfj/Installations/dmd/include/std/utf.d(2007): Error: decode
(auto ref const(inout(char)[]) str, ref ulong index) is not callable using
argument types (const(inout(char)[]), ulong)
inouttest.d(4): Error: template instance std.utf.validate!(inout(char)[]) error
instantiating

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 07, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089


John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #1 from John Colvin <john.loughran.colvin@gmail.com> 2014-02-07 08:11:35 GMT ---
Marked as regression: this worked with 2.064

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
          Component|Phobos                      |DMD


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2014-02-09 18:24:47 PST ---
Both compiler and Phobos fix are necessary.

https://github.com/D-Programming-Language/dmd/pull/3239 https://github.com/D-Programming-Language/phobos/pull/1921

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089



--- Comment #3 from github-bugzilla@puremagic.com 2014-02-09 23:53:28 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/aaf4bd8df5f612bca0c80ed76b5d2fc3a7c3f23c fix Issue 12089 - std.utf.validate and inout(char[]) failts to compile

https://github.com/D-Programming-Language/dmd/commit/c3b9b2497860e39b7ca5f4fd8da2f6ba75ef9e0c Merge pull request #3239 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089



--- Comment #4 from github-bugzilla@puremagic.com 2014-02-10 07:32:49 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/2763ee14661faf985fe17df776e79365c80181ac fix Issue 12089 - std.utf.validate and inout(char[]) failts to compile

Unqual should support inout(const(T))

https://github.com/D-Programming-Language/phobos/commit/a04db417369b197262d9f64a9c621eb64c3e078b Merge pull request #1921 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089


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

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 11, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089



--- Comment #5 from github-bugzilla@puremagic.com 2014-02-11 05:13:50 PST ---
Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/8e8fd6490c06ca4c39b534b53927f6be829e1a88 Merge pull request #1921 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 12, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089



--- Comment #6 from github-bugzilla@puremagic.com 2014-02-12 14:37:31 PST ---
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/45fda4c7868fe0a85b7bdabbeca33c893b60c85a Merge pull request #3239 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 28, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12089



--- Comment #7 from github-bugzilla@puremagic.com 2014-02-27 20:13:24 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/8e8fd6490c06ca4c39b534b53927f6be829e1a88 Merge pull request #1921 from 9rnsr/fix12089

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