Bug 16611 – std.traits.fullyQualifiedName fails with error 'Unrecognized type const(void)'

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-10-13T21:59:00Z
Last change time
2017-01-16T23:25:10Z
Assigned to
nobody
Creator
alexandru.ermicioi

Comments

Comment #0 by alexandru.ermicioi — 2016-10-13T21:59:08Z
fullyQualifiedName fails to execute on following code: -------------------- import std.traits; enum auto test = fullyQualifiedName!(const(void)); -------------------- The error produced by it, is: Error: static assert "Unrecognized type const(void), can't convert to fully qualified string"
Comment #1 by alexandru.razvan.c — 2016-11-21T02:42:28Z
Created a PR which fixes the problem: https://github.com/dlang/phobos/pull/4916 However I am not sure if this is the right approach. In theory shouldn't "const(void)" be caught by isBasicType ? Should I edit this one instead to check for const(void) as well ?
Comment #2 by github-bugzilla — 2016-11-22T21:36:16Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a636bb6bb00e54fda367bd3c452db2ced0ca9df6 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.traits.fullyQualifiedName https://github.com/dlang/phobos/commit/3fec190b7f3333f1274dc7b1339f161b09027145 Merge pull request #4916 from Darredevil/issue-16611 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.trait…
Comment #3 by github-bugzilla — 2016-12-27T13:11:34Z
Commits pushed to scope at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a636bb6bb00e54fda367bd3c452db2ced0ca9df6 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.traits.fullyQualifiedName https://github.com/dlang/phobos/commit/3fec190b7f3333f1274dc7b1339f161b09027145 Merge pull request #4916 from Darredevil/issue-16611
Comment #4 by github-bugzilla — 2017-01-07T03:02:41Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a636bb6bb00e54fda367bd3c452db2ced0ca9df6 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.traits.fullyQualifiedName https://github.com/dlang/phobos/commit/3fec190b7f3333f1274dc7b1339f161b09027145 Merge pull request #4916 from Darredevil/issue-16611
Comment #5 by github-bugzilla — 2017-01-16T23:25:10Z
Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a636bb6bb00e54fda367bd3c452db2ced0ca9df6 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.traits.fullyQualifiedName https://github.com/dlang/phobos/commit/3fec190b7f3333f1274dc7b1339f161b09027145 Merge pull request #4916 from Darredevil/issue-16611