https://d.puremagic.com/issues/show_bug.cgi?id=12319
Summary: __traits(identifier, s.tupleof[0]) fails when s is a
pointer to a struct
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-08
21:24:44 EET ---
////////////////////// test.d //////////////////////
void test()
{
struct S { int i; }
S* s;
pragma(msg, __traits(identifier, s.tupleof[0]));
}
////////////////////////////////////////////////////
Compiler output:
test.d(5,14): Error: variable s cannot be read at compile time
test.d(5,14): Error: argument __error has no identifier
false
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------