Newbie GDC issues

Iain Buclaw ibuclaw at ubuntu.com
Thu Sep 5 23:51:14 PDT 2013


On 6 September 2013 00:56, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
>
> @Iain: on that note, it looks like gdb thinks it's debugging C++, but D
> doesn't have anything called 'operator[]'. It would be Really Nice if we
> could somehow coax gdb to use opIndex instead (though it doesn't really
> help in the case of dyn arrays 'cos they are built-in, and don't
> actually have any opIndex to speak of).
>

It's using the D front-end of the gdb.  You'd know if gdb was trying
to debug it as C++, as it has a different error.

No symbol "operator[]" in current context.

The other error is generic and you can reproduce it when debugging C.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list