Issue 14985 - [REG2.068.1-b1] Link failure for const TypeInfo of speculative instantiated struct
Summary: [REG2.068.1-b1] Link failure for const TypeInfo of speculative instantiated s...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: link-failure
Depends on:
Blocks:
 
Reported: 2015-08-31 01:38 UTC by Kenji Hara
Modified: 2015-09-02 04:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2015-08-31 01:38:46 UTC
Introduced in:
https://github.com/D-Programming-Language/dmd/pull/4944

Mentioned by Martin Nowak:
https://github.com/D-Programming-Language/dmd/pull/4944#issuecomment-136210663

import std.file;

struct Only(T)
{
    private T _val;
}

auto only(V)(V v)
{
    return Only!V(v);
}

static struct Chain(R...)
{
    R source;
}

auto chain(R...)(R rs)
{
    return Chain!R(rs);
}

void main()
{
    string docRoot;

    chain(
        dirEntries(docRoot , "*.*"   , SpanMode.shallow),
        only(docRoot)
    );
}
Comment 1 github-bugzilla 2015-08-31 03:44:17 UTC
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7946344223863e67493695247d38cbb03db82cd6
fix Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct

https://github.com/D-Programming-Language/dmd/commit/ce8e6d13cc82a8c9c175d4db9967f29dbd0d96e7
Merge pull request #4995 from 9rnsr/fix14985

[REG2.068.1-b1] Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct
Comment 2 github-bugzilla 2015-09-02 04:10:21 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7946344223863e67493695247d38cbb03db82cd6
fix Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct

https://github.com/D-Programming-Language/dmd/commit/ce8e6d13cc82a8c9c175d4db9967f29dbd0d96e7
Merge pull request #4995 from 9rnsr/fix14985