Thread overview
[Issue 16320] DMD segfault with T.classinfo.hashOf
Jul 25, 2016
Cauterite
[Issue 16320] DMD segfault with switch {case T.classinfo.hashOf :
Jul 25, 2016
Cauterite
[Issue 16320] DMD segfault T.classinfo.hashOf
Jul 25, 2016
Cauterite
Jul 25, 2016
Cauterite
Jul 25, 2016
Ketmar Dark
Jul 25, 2016
ag0aep6g@gmail.com
Jul 25, 2016
Ketmar Dark
Jul 25, 2016
Cauterite
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

Cauterite <cauterite@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

Cauterite <cauterite@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD segfault with           |DMD segfault with switch
                   |T.classinfo.hashOf          |{case T.classinfo.hashOf :

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

Cauterite <cauterite@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD segfault with switch    |DMD segfault
                   |{case T.classinfo.hashOf :  |T.classinfo.hashOf

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

--- Comment #1 from Cauterite <cauterite@gmail.com> ---
actually this is a much better example: https://dpaste.dzfl.pl/01e323e77dac

    class T {};
    enum x = T.classinfo.hashOf;

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #2 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
seems to be fixed in master. confirm anyone?

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

ag0aep6g@gmail.com changed:

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

--- Comment #3 from ag0aep6g@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)".

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

--- Comment #4 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
yes, error is expected, as you can't do pointer math in CTFE. thank you.

--
July 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16320

Cauterite <cauterite@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Cauterite <cauterite@gmail.com> ---
Thanks Ket and anonymous.

--