www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5133] New: dmd fails to build rdmd (problem with startsWith)

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

           Summary: dmd fails to build rdmd (problem with startsWith)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com



23:39:58 PDT ---
Regression from 2.049->2.050, using rdmd.d r1400:

dmd rdmd.d
std.contracts has been scheduled for deprecation. Please use std.exception instead. rdmd.d(186): Error: template std.algorithm.startsWith(alias pred = "a == b",Range,Ranges...) if (Ranges.length > 1 && isInputRange!(Range) && is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[0])) : bool) && is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[1..__dollar])) : uint)) does not match any function template declaration rdmd.d(186): Error: template std.algorithm.startsWith(alias pred = "a == b",Range,Ranges...) if (Ranges.length > 1 && isInputRange!(Range) && is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[0])) : bool) && is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[1..__dollar])) : uint)) cannot deduce template function from argument types !()(const(immutable(char)[]),string) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 29 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5133




23:59:47 PDT ---
Put a reduced test case for this in issue 5134. Made it a separate issue
because I think that might be non-trivial to solve, whereas this should be easy
to work around.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5133




00:03:55 PDT ---
Workaround:



bool inALibrary(in string source, in string object)

to:

bool inALibrary(string source, in string object)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5133


Sönke Ludwig <ludwig informatik.uni-luebeck.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ludwig informatik.uni-luebe
                   |                            |ck.de



03:59:09 PDT ---
I mentioned this also on the beta mailing list; the direct cause are the
changes done by David Simcha to avoid code in phobos that relies on issue 3534.
I also got this problem for startsWith, but almost all functions working with
ranges should be affected by this.

David also proposed a language fix for this that sounds promising, although I
did not really think through all the implications:
http://www.digitalmars.com/d/archives/digitalmars/D/Proposal_Automatic_shallow_Unqual_on_IFTI_113653.html

The alternative would be to change all functions dealing with ranges that have
this issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5133


Shin Fujishiro <rsinfu gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |rsinfu gmail.com
         AssignedTo|nobody puremagic.com        |rsinfu gmail.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 14 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5133


Shin Fujishiro <rsinfu gmail.com> changed:

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



---
Worked around: http://www.dsource.org/projects/phobos/changeset/2169
Still bug 5134 is problem.

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