Bug 11209 – Wrong module name in error message when using mixin

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-09T10:47:23Z
Last change time
2024-12-13T18:12:25Z
Assigned to
No Owner
Creator
Manfred Nowak
Moved to GitHub: dmd#18690 →

Comments

Comment #0 by svv1999 — 2013-10-09T10:47:23Z
seems to be related to 107 and 1324 --- file fod.d ------- import bar; void main(){ mixin Temp!( int); int arr[]; arr.length= 1; f( arr[0]); // foo(5): Range Violation } import std.stdio; ----------------------- That error message is a brain twister, because the error is in bar(5): --- file bar.d -------- mixin template Temp( T){ void f( T parm){ int[] arr; writeln( arr[1]); // erroneous statement is here } } ------------------------
Comment #1 by robert.schadek — 2024-12-13T18:12:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18690 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB