D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11209 - Wrong module name in error message when using mixin
Summary: Wrong module name in error message when using mixin
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-09 10:47 UTC by Manfred Nowak
Modified: 2024-12-13 18:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manfred Nowak 2013-10-09 10:47:23 UTC
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 dlangBugzillaToGithub 2024-12-13 18:12:25 UTC
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