[Issue 12497] New: [REG2.064] ICE on string mixin with non-string operand

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 31 01:55:06 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12497

           Summary: [REG2.064] ICE on string mixin with non-string operand
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-31 01:54:36 PDT ---
Test case:

void foo() {}
void main()
{
    struct S
    {
        mixin(foo());   // MixinDeclaration
    }
    mixin(foo());       // MixinStatement
}


With 2.063:
test.d(6): Error: cannot evaluate foo() at compile time
test.d(6): Error: argument to mixin must be a string, not (foo())
test.d(8): Error: cannot evaluate foo() at compile time
test.d(8): Error: argument to mixin must be a string, not (foo())
test.d(8): Error: cannot evaluate foo() at compile time
test.d(8): Error: argument to mixin must be a string, not (foo())

With 2.064:
(no error)

With 2.065:
Assertion failure: 'global.gaggedErrors || global.errors' on line 293 in file
'statement.c'

abnormal program termination

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


More information about the Digitalmars-d-bugs mailing list