Bug 9042 – Self-import with mixin

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-17T13:00:57Z
Last change time
2024-12-13T18:02:56Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Roman
Moved to GitHub: dmd#18496 →

Comments

Comment #0 by freeslave93 — 2012-11-17T13:00:57Z
This code will cause infinite compilation if name of file is "hello.d" int main(string[] args) { mixin(import("hello.d")); //import itself return 0; }
Comment #1 by hsteoh — 2014-01-15T08:24:15Z
Still happens on latest git HEAD (786ea8228f836b1d80b36b991c534256ea6c9592).
Comment #2 by robert.schadek — 2024-12-13T18:02:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18496 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB