D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19170 - getOverloads with a pointer type seg faults (ICE)
Summary: getOverloads with a pointer type seg faults (ICE)
Status: RESOLVED DUPLICATE of issue 19152
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-14 17:32 UTC by Richard (Rikki) Andrew Cattermole
Modified: 2018-08-14 17:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Richard (Rikki) Andrew Cattermole 2018-08-14 17:32:04 UTC
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 Mike Franklin 2018-08-14 17:57:49 UTC

*** This issue has been marked as a duplicate of issue 19152 ***