Classes in scopes

Sergey Gromov snake.scaly at gmail.com
Fri Oct 24 04:20:22 PDT 2008


Fri, 24 Oct 2008 04:02:31 -0400,
bearophile wrote:
> I think I may have found another bug (n. 41) in DMD:
> 
> void main() {
>     { class Foo {} } 
>     { class Foo {} }
> }
> 
> It produces:
> t.o:(.rodata+0x34): multiple definition of `_Dmain3Foo6__initZ'
> t.o:(.rodata+0x0): first defined here
> ...



More information about the Digitalmars-d-learn mailing list