Bug 2247 – bad header file generated for if (auto o = ...) {}

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-07-25T18:51:00Z
Last change time
2014-02-24T15:33:41Z
Assigned to
bugzilla
Creator
2korden

Comments

Comment #0 by 2korden — 2008-07-25T18:51:08Z
int test(T)(T t) { if (auto o = cast(Object)t) return 1; return 0; } generates the following // D import file generated from 'test.d' template test(T) { int test(T t) { if (o;cast(Object)t) return 1; return 0; } } which is a deprecated syntax.
Comment #1 by bugzilla — 2008-08-14T03:01:27Z
Fixed dmd 1.034 and 2.018