[Issue 19170] New: getOverloads with a pointer type seg faults (ICE)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 14 17:32:04 UTC 2018


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

          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 at puremagic.com
          Reporter: alphaglosined at gmail.com

Working up on 2.080.0, Not working as of 2.081.2.

Example:

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.

--


More information about the Digitalmars-d-bugs mailing list