Bug 14743 – ICE in TemplateInstance::needsTypeInference() with template forward reference

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-28T09:54:00Z
Last change time
2017-08-02T08:07:32Z
Keywords
ice, pull
Assigned to
nobody
Creator
useless_account99

Comments

Comment #0 by useless_account99 — 2015-06-28T09:54:23Z
I get the above error using DMD v2.067.1 on a Linux Mint 17.1 64-bit machine. Can be reproduced with this code: class A { auto func1 = (A a) {a.func2!int;}; auto func2(T)() {} }
Comment #1 by k.hara.pg — 2015-07-01T11:36:23Z
Comment #2 by github-bugzilla — 2015-08-30T03:38:54Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/453a1d6ecc68c03a23079ddbf58684b8aae8d5d5 fix Issue 14743 - ICE in TemplateInstance::needsTypeInference() with template forward reference https://github.com/D-Programming-Language/dmd/commit/f18fe224da8357ec28c9693215c73830830e2965 Merge pull request #4792 from 9rnsr/fix14743 Issue 14743 - ICE in TemplateInstance::needsTypeInference() with template forward reference
Comment #3 by github-bugzilla — 2017-08-02T08:07:32Z
Commit pushed to dmd-cxx at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0f2b76200312f0e099da3655ee9e06d34de44f3d Issue 14743 - ICE in TemplateInstance::needsTypeInference() with template forward reference