Bug 4276 – CTFE error messages use random variable names
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-06-05T05:04:00Z
Last change time
2014-02-15T02:44:23Z
Assigned to
nobody
Creator
jason.james.house
Comments
Comment #0 by jason.james.house — 2010-06-05T05:04:40Z
Here's a sample that I hit:
$ dmd -c *.d -offoo
board.d(519): Error: variable __ctmp533 cannot be read at compile time
board.d(519): Error: cannot evaluate __ctmp533.this(global_random) at compile time
Bugzilla 3801 and Bugzilla 3730 also demonstrate this behavior but are not about error message quality.
Comment #1 by clugdbug — 2010-06-05T11:35:17Z
(In reply to comment #0)
> Here's a sample that I hit:
>
> $ dmd -c *.d -offoo
> board.d(519): Error: variable __ctmp533 cannot be read at compile time
> board.d(519): Error: cannot evaluate __ctmp533.this(global_random) at compile
> time
>
> Bugzilla 3801 and Bugzilla 3730 also demonstrate this behavior but are not
> about error message quality.
Such messages are references to compiler generated code. Each is a different bug; they don't have a common cause. A test case for this particular one would be valuable.
Comment #2 by clugdbug — 2011-04-21T00:31:20Z
Invalid - no test case. (Based on the error message, I think this has been fixed anyway).