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