www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19170] New: getOverloads with a pointer type seg faults (ICE)


          Issue ID: 19170
           Summary: getOverloads with a pointer type seg faults (ICE)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

Working up on 2.080.0, Not working as of 2.081.2.


struct Foo {
    int func() {}   

pragma(msg, __traits(getOverloads, Foo*, "func"));

Will cause an ICE.

While it is arguable that a pointer type should be supported by getOverloads,
the fact that it did work and now doesn't (while causing a very horrible and
very time consuming amount of debugging since there is effectively no useful
message e.g. location noted) means it needs fixing.

Aug 14 2018