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

           Summary: Compiler crash on invariant + method overload
           Product: D
           Version: 1.048
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: moritzwarn...@web.de


--- Comment #0 from Moritz Warning <moritzwarn...@web.de> 2009-10-14 08:55:43 
PDT ---
dmd 1.049 and svn r102 crash on this code.

class A
{
        invariant
        {
              //  assert (true);
        }

        void fill ()
        {
        }
}


class B : A
{
    void fill ()
        {
        }
}

Program received signal SIGSEGV, Segmentation fault.
VarExp (this=0x96f20c0, loc={filename = 0x96daa88 "tango.io.Buffer.d", linnum =
20}, var=0x0) at expression.c:3914
3914        this->type = var->type;
Current language:  auto; currently c++
(gdb) bt
#0  VarExp (this=0x96f20c0, loc={filename = 0x96daa88 "tango.io.Buffer.d",
linnum = 20}, var=0x0) at expression.c:3914
#1  0x080c3765 in FuncDeclaration::mergeFensure (this=0x96db4b0, sf=0x0) at
func.c:1575
#2  0x080c4089 in FuncDeclaration::semantic3 (this=0x96db4b0, sc=0x96f14f8) at
func.c:742
#3  0x0811948d in AggregateDeclaration::semantic3 (this=0x96db2e8,
sc=0x96f14f8) at struct.c:88
#4  0x080eac3d in Module::semantic3 (this=0x96da980) at module.c:804
#5  0x080e8cf3 in main (argc=Cannot access memory at address 0x0
) at mars.c:1115

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

Reply via email to