D issues are now
tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Summary: |
bad header file generated for if (auto o = ...) {} |
Product: |
D
|
Reporter: |
Koroskin Denis <2korden> |
Component: |
dmd | Assignee: |
Walter Bright <bugzilla> |
Status: |
RESOLVED
FIXED
|
Severity: |
normal
|
Priority: |
P2
|
Version: |
D1 (retired) |
Hardware: |
x86 |
OS: |
Windows |
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
Walter Bright
2008年08月14日 03:01:27 UTC
Fixed dmd 1.034 and 2.018