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
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6c1f52e9049af7295de7c70e84df868907b5cd43 fix Issue 9545 - ICE with member template instantiation https://github.com/D-Programming-Language/dmd/commit/4b83c91f91208fb63a5ce63b707c65766055d357 Merge pull request #1678 from 9rnsr/fix9545 [REG 2.063a] Issue 9545 - ICE with member template instantiation