[Issue 9806] assertion failure in struct.c:668

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 1 18:15:13 PDT 2013


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



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-01 18:15:12 PDT ---
(In reply to comment #2)
> This slight variation still fails:
> 
> ---
> cat > test.d <<code
> struct S(alias x)
> {
>     template Next()
>     {
>         enum expr = x + 1;
>         alias S!expr Next;
>     }
> }
> alias S!1 One;
> alias S!0.Next!() OneAgain;
> code
> dmd -c -o- test.d
> ---
> dmd: struct.c:722: virtual void StructDeclaration::semantic(Scope*): Assertion
> `type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.
> Aborted (core dumped)
> ---

I updated my pull request to fix it.

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