www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10632] New: [ICE](glue.c line 1227) With inlining and tuples

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

           Summary: [ICE](glue.c line 1227) With inlining and tuples
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-07-13 09:06:42 PDT ---
import std.typecons: Tuple;
struct Foo {}
alias Bar = Tuple!(Foo);
Bar spam() {
    Bar y;
    y = spam();
    return y;
}
void main() {}


dmd 2.064alpha gives, if I compile with -inline:

Assertion failure: '0' on line 1227 in file 'glue.c'

Maybe it's a regression.

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