[Issue 107] Wrong filename in error message when using a mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 26 11:04:57 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=107


Leandro Lucarella <llucax at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |llucax at gmail.com
         Resolution|FIXED                       |


--- Comment #6 from Leandro Lucarella <llucax at gmail.com> 2010-11-26 11:03:32 PST ---
luca at homero:/tmp/dmd/dmd$ cat -n mixin_21_A.d 
     1  // $HeadURL: http://dstress.kuehne.cn/compile/m/mixin_21_A.d $
     2  // $Date: 2006-12-31 20:58:06 +0100 (Sun, 31 Dec 2006) $
     3  // $Author: thomask $
     4  
     5  // @author@     <benoit at tionex.de>
     6  // @date@       2006-04-15
     7  // @uri@        http://d.puremagic.com/issues/show_bug.cgi?id=107
     8  
     9  module mixin_21_A;
    10  
    11  template T(){
    12          UNDEFINED x;
    13  }
    14  
luca at homero:/tmp/dmd/dmd$ cat -n mixin_21_B.d 
     1  // $HeadURL: http://dstress.kuehne.cn/nocompile/m/mixin_21_B.d $
     2  // $Date: 2006-12-31 20:58:06 +0100 (Sun, 31 Dec 2006) $
     3  // $Author: thomask $
     4  
     5  // @author@     <benoit at tionex.de>
     6  // @date@       2006-04-15
     7  // @uri@        http://d.puremagic.com/issues/show_bug.cgi?id=107
     8  
     9  // __DSTRESS_ELINE__ 15
    10  
    11  module mixin_21_B;
    12  
    13  import mixin_21_A;
    14  
    15  mixin T!();
    16  
luca at homero:/tmp/dmd/dmd$ ./linux/bin/dmd -c mixin_21_B.d 
mixin_21_A.d(12): Error: identifier 'UNDEFINED' is not defined
mixin_21_A.d(12): Error: UNDEFINED is used as a type
mixin_21_B.d(12): Error: variable mixin_21_B.T!().x voids have no value
mixin_21_B.d(15): Error: mixin mixin_21_B.T!() error instantiating
luca at homero:/tmp/dmd/dmd$ ./linux/bin/dmd | head -n 1
Digital Mars D Compiler v1.065

Note that the 3er error is WRONG (line 12 in mixin_21_B.d is blank)


Andrei, this is the second bug you close that is NOT fixed. PLEASE, PLEASE, be
a little more careful testing the bugs before you close them. It's not very
serious, really.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list