[Issue 16320] DMD segfault T.classinfo.hashOf

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 25 08:10:41 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16320

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #3 from ag0aep6g at gmail.com ---
(In reply to Cauterite from comment #1)
> actually this is a much better example:
> https://dpaste.dzfl.pl/01e323e77dac
> 
>     class T {};
>     enum x = T.classinfo.hashOf;

(In reply to Ketmar Dark from comment #2)
> seems to be fixed in master. confirm anyone?

Can confirm. 2.071.1 segfaults. Git head (v2.072.0-devel-b0bc2f4) doesn't
segfault, but prints an error: "object.d(3173): Error: pointer & arg cannot be
sliced at compile time (it does not point to an array)".

--


More information about the Digitalmars-d-bugs mailing list