digitalmars.D.bugs - [Issue 12319] New: __traits(identifier, s.tupleof[0]) fails when s is a pointer to a struct
- d-bugmail puremagic.com (30/30) Mar 08 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12319
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 puremagic.com ReportedBy: thecybershadow gmail.com 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: -------
Mar 08 2014