[Issue 22676] fullyQualifiedName fails to compile with 2.098.1 relese -- there is some issue with call to __traits(isScalar ..
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 17 08:47:38 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22676
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moonlightsentinel at disroot.o
| |rg
Hardware|x86_64 |All
OS|Linux |All
--- Comment #1 from moonlightsentinel at disroot.org ---
Reduced example:
template fullyQualifiedName(T)
{
static if (is(T : real))
enum fullyQualifiedName;
enum fullyQualifiedName = null;
}
static auto _inst()
{
return fullyQualifiedName!(frop);
}
alias attr = __traits(getAttributes, _inst);
class frop
{
alias type_id = registry!frop;
}
template registry(T)
{
enum string FOO = fullyQualifiedName!T;
}
--
More information about the Digitalmars-d-bugs
mailing list