Howto build a repo case for a ICE?

Daniel Murphy yebblies at nospamgmail.com
Sun Feb 19 07:44:08 PST 2012


"Benjamin Thaut" <code at benjamin-thaut.de> wrote in message 
news:jhr584$2d1v$1 at digitalmars.com...
> Thank you very much that helped a lot. I was able to reduce it to the 
> following code:
>
> class Foo
> {
>
>   @property EntityId entityId()
>   {
>     return EntityId(3);
>   }
>
> }
>
> struct EntityId
> {
>   uint id;
>
>   alias id this;
>
>   this(uint id)
>   {
>     this.id = id;
>   }
> }
>
> int main(string[] argv)
> {
>   Foo foo = null;
>   auto id = (foo) ? foo.entityId : -1;
>
>   return 0;
> }

"Daniel Murphy" <yebblies at nospamgmail.com> wrote in message 
news:jhqua0$20c0$1 at digitalmars.com...
>  It shouldn't be happening, but I'd guess it's something to do with alias 
> this with integral types (huge guess).  How big is the project?

Damn I'm good. 




More information about the Digitalmars-d mailing list