Bug 12867 – std.traits.fullyQualifiedName fails on ClassName.staticMember.memberOfStruct
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-06T16:24:00Z
Last change time
2017-07-15T02:57:19Z
Assigned to
nobody
Creator
donny.viszneki
Comments
Comment #0 by donny.viszneki — 2014-06-06T16:24:46Z
Code to reproduce is very simple:
import std.traits : fullyQualifiedName;
struct Foo { int fooMember; }
class Bar { static Foo foo; }
pragma(msg, fullyQualifiedName!(Bar.foo.fooMember));
Can be seen here as well:
http://dpaste.dzfl.pl/a2cbe9847f92
Comment #1 by razvan.nitu1305 — 2017-07-12T10:42:47Z
Could not reproduce on Ubuntu 16.04 latest phobos and dmd.
Comment #2 by dlang-bugzilla — 2017-07-15T02:57:19Z
Before to 2.057 : Failure
Fixed by: https://github.com/dlang/phobos/pull/384 - Add PackageName, ModuleName and FullyQualifiedName traits.
2.058 to 2.060 : Success with output: fooMember
Broken by: https://github.com/dlang/phobos/pull/913 - `std.traits.hasElaborateCopyConstructor` fixes and other
2.061 : Failure
Fixed by: https://github.com/dlang/phobos/pull/1967 - Issue 10502 - Can't get fullyQualifiedName of a templated struct
Since 2.066.0: Success with output: test.Foo.fooMember
*** This issue has been marked as a duplicate of issue 10502 ***