[Issue 697] New: No const folding on asm db,dw, etc
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 18 00:30:58 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=697
Summary: No const folding on asm db,dw, etc
Product: D
Version: 0.177
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
This code generates the error message "const init" which doesn't make much
sense.
(The "goto end" is only included to make it safe to run).
The same bug applies also to dd, ds, di, dl, de, df
(and to dw, dq, and dt, which are undocumented).
-------
void main()
{
goto end;
const byte z = 35;
asm { db z; }
end: ;
}
-------
And it would be nice if
asm { db 1+2; }
also worked (it currently prints "end of instruction").
--
More information about the Digitalmars-d-bugs
mailing list