Bug 16406 – Compiler segfaults on __traits(getprotection, symbol)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-08-20T13:53:00Z
Last change time
2017-01-17T18:41:32Z
Keywords
ice
Assigned to
nobody
Creator
alexandru.ermicioi

Comments

Comment #0 by alexandru.ermicioi — 2016-08-20T13:53:51Z
Given code: class Parent { public { void foo() { } } } class Child { public { alias foo = Parent.foo; void foo(int integer) { } } } unittest { auto str = __traits(getProtection, Child.foo); } The compiler will segfault, due to import of foo overload set from Parent class into Child class.
Comment #1 by cauterite — 2016-08-20T13:55:58Z