Bug 12705 – @system is missing when using getFunctionAttributes on a typeof(function)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-05T20:47:00Z
Last change time
2014-05-08T14:55:52Z
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2014-05-05T20:47:06Z
This reports becomes valid after https://github.com/D-Programming-Language/dmd/pull/3506 is merged (soon).
-----
struct S
{
void testSystem() @system { }
}
void main()
{
// tuple("@system")
pragma(msg, typeof(S.testSystem));
// tuple("@system")
pragma(msg, __traits(getFunctionAttributes, S.testSystem));
// tuple()
pragma(msg, __traits(getFunctionAttributes, typeof(S.testSystem)));
}
-----
This seems to be unrelated to getFunctionAttributes, but is some internal issue.
Comment #1 by andrej.mitrovich — 2014-05-08T11:31:05Z