Bug 9545 – [REG 2.063a] ICE with member template instantiation
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-19T20:18:00Z
Last change time
2013-02-20T17:27:04Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-02-19T20:18:48Z
struct S1 { template T(X) { alias T = X; } }
void main()
{
auto x1 = S1.init.T!int; // ICE
}
Instead, compiler should report "int is not an expression" error.
Comment #1 by andrej.mitrovich — 2013-02-19T20:22:56Z
(In reply to comment #0)
> Instead, compiler should report "int is not an expression" error.
Unfortunately this is a regression.
2.061: test.dd(4): Error: T is not a field, but a alias
Comment #2 by k.hara.pg — 2013-02-20T00:14:58Z
(In reply to comment #1)
> (In reply to comment #0)
> > Instead, compiler should report "int is not an expression" error.
>
> Unfortunately this is a regression.
>
> 2.061: test.dd(4): Error: T is not a field, but a alias
Thanks. It's introduced by fixing bug 8238 in 2.063alpha.
https://github.com/D-Programming-Language/dmd/pull/1678
Comment #3 by github-bugzilla — 2013-02-20T11:27:12Z