[Issue 4329] Do not show error messages that refer to __error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 18 01:28:54 PDT 2010


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



--- Comment #7 from Don <clugdbug at yahoo.com.au> 2010-06-18 01:28:49 PDT ---
And here are another seven cases I found.

TEST CASE B:
--------------
void bug4329b()
{
   create!().havoc!();
   delete something;
    mixin(chaos);
}
bug.d(25): Error: template instance template 'create' is not defined
bug.d(25): Error: undefined identifier create!().havoc
bug.d(25): Error: __error isn't a template
bug.d(26): Error: undefined identifier something
bug.d(26): Error: cannot delete type _error_
bug.d(27): Error: undefined identifier chaos
bug.d(27): Error: argument to mixin must be a string, not (__error)
bug.d(27): Error: argument to mixin must be a string, not (__error)

TEST CASE C:
--------------
void bug4329c()
{
    delete and!(crash);
}
bug.d(33): Error: identifier 'crash' is not defined
bug.d(33): Error: and!(_error_) is not an lvalue
bug.d(33): Error: cannot delete type void

TEST CASE D:
--------------
void bug4329d() {
    make!(mess);   
    switch(2) {
        case 3:.. case 6.7:
        case closed:
    }
}
bug.d(37): Error: identifier 'mess' is not defined
bug.d(37): Error: make!(_error_) has no effect
bug.d(39): Error: cannot implicitly convert expression (6.7) of type double to
i
nt
bug.d(39): Error: first case 3 is greater than last case __error
bug.d(40): Error: undefined identifier closed
bug.d(40): Error: case must be a string or an integral constant, not __error

-- 
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