Bug 1256 – "with" statement with symbol

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2007-06-04T11:44:00Z
Last change time
2014-02-16T15:23:52Z
Assigned to
bugzilla
Creator
wstring

Comments

Comment #0 by wstring — 2007-06-04T11:44:30Z
The following code was copied from D document: http://www.digitalmars.com/d/statement.html#WithStatement with a little modification. The 7th line have caused a compile error "Foo is not a lvalue". void main() { struct Foo { typedef int Y; } with (Foo) { //Error: Foo is not a lvalue Y y; } }
Comment #1 by onlystupidspamhere — 2007-06-26T14:13:49Z
Fixed in 1.017.