[Issue 12319] New: __traits(identifier, s.tupleof[0]) fails when s is a pointer to a struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 8 11:24:45 PST 2014
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: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list