[Issue 6866] New: ICE(mtype.c): alias this and inout matching
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 30 07:01:55 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6866
Summary: ICE(mtype.c): alias this and inout matching
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-10-30 07:00:44 PDT ---
struct S
{
const(char)[] val;
alias val this;
}
inout(char)[] foo(inout(char)[] s) { return s; }
void main()
{
S s;
static assert(is(typeof(foo(s)) == const(char)[]));
// Assertion failure: 'targ' on line 2029 in file 'mtype.c'
}
--
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