[Issue 11718] regression(git head): failed semantic analysis

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 11 14:53:21 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11718


Nils <nilsbossung at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nilsbossung at googlemail.com


--- Comment #1 from Nils <nilsbossung at googlemail.com> 2013-12-11 14:53:18 PST ---
(In reply to comment #0)
Reduced:
---
cat > test1.d << code
struct Proxy(alias a) {}
auto setfields(int a)
{
    Proxy!a p;
    return p;
}
auto setfields()
{
    int a;
    Proxy!a p;
    return p;
}
code
dmd -c test1.d
---
test1.d(1): Error: struct test1.setfields.Proxy!(a).Proxy failed semantic
analysis
test1.d(10): Error: template instance test1.setfields.Proxy!(a) error
instantiating
---

And another, similar trigger:
---
cat > test2.d << code
mixin template M()
{
    struct S {}
}
mixin M!();
mixin M!();
code
dmd -c test2.d
---
test2.d(3): Error: struct test2.M!().S failed semantic analysis
test2.d(6): Error: mixin test2.M!() error instantiating
---

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


More information about the Digitalmars-d-bugs mailing list