Howto build a repo case for a ICE?

Benjamin Thaut code at benjamin-thaut.de
Sun Feb 19 07:48:28 PST 2012


Am 19.02.2012 16:44, schrieb Daniel Murphy:
> "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.
>
>

Create a bug ticket for it: 
http://d.puremagic.com/issues/show_bug.cgi?id=7545

The bug was introduced because I had to replace a typedef with a wrapper 
struct.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list