D_Parser icon indicating copy to clipboard operation
D_Parser copied to clipboard

Stack overflow with alias this

Open rainers opened this issue 5 years ago • 0 comments

This code causes a stack overflow in the TypeReferenceFinder:

module bmp;

struct BMPInfoV3
{
    int width;
    int height;
}

struct BMPInfoV4
{
    BMPInfoV3 base;
    alias base this;
}

struct BMPInfoV5
{
    BMPInfoV4   base;
    alias base this;
}

rainers avatar Apr 09 '19 21:04 rainers