Bug 12413 – Infinite recursion of `Package::search`

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-19T08:32:00Z
Last change time
2014-03-24T00:18:36Z
Keywords
ice
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2014-03-19T08:32:58Z
This code causes an infinite recursion in dmd: --- mixin template t() { static import std.ascii; } class C { mixin t!(); void f() { std.x; } } --- At the end of `Package::search` `pkg->search` is called for `pkg = enclosingPkg()` if any, and `pkg == this` so we call ourselves.
Comment #1 by dlang-bugzilla — 2014-03-20T03:24:50Z
Comment #2 by kekeniro2 — 2014-03-23T20:54:12Z
https://github.com/D-Programming-Language/dmd/pull/3395 #2256 has been reverted. So the issue should be closed.