Bug 12319 – __traits(identifier, s.tupleof[0]) fails when s is a pointer to a struct

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-08T11:24:44Z
Last change time
2024-12-13T18:18:02Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev
Moved to GitHub: dmd#18791 →

Comments

Comment #0 by dlang-bugzilla — 2014-03-08T11:24:44Z
////////////////////// 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
Comment #1 by robert.schadek — 2024-12-13T18:18:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18791 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB