[Issue 4749] Templated & non-templated constructors conflicting

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 2 06:46:57 PDT 2011


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


simendsjo <simendsjo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simendsjo at gmail.com


--- Comment #4 from simendsjo <simendsjo at gmail.com> 2011-08-02 06:46:56 PDT ---
A smaller test case:

struct S {
    this()(int v) {}
    this(char[] v) {}
}

t.d(3): Error: constructor t.S.this conflicts with template t.S.__ctor() at
t.d(
2)

-- 
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