Bug 19170 – getOverloads with a pointer type seg faults (ICE)
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-14T17:32:04Z
Last change time
2018-08-14T17:57:49Z
Assigned to
No Owner
Creator
Richard Cattermole
Comments
Comment #0 by alphaglosined — 2018-08-14T17:32:04Z
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.
Comment #1 by slavo5150 — 2018-08-14T17:57:49Z
*** This issue has been marked as a duplicate of issue 19152 ***