[Issue 1443] New: ICE on template inference three-liner

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 27 08:38:51 PDT 2007


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

           Summary: ICE on template inference three-liner
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: default_357-line at yahoo.de


The code:

struct _store(T...) { T t; static void opCat_r(C)(C x) { } }
_store!(T) store(T...)(T v) { return _store!(T)(v); }
void main() { (int e) { } ~ store(5); }

The crash:

xt4100 ~/d/freelink/src $ gdc testcase.d -o testcase
cc1d: ../../gcc-4.1.2/gcc/d/d-codegen.cc:846: tree_node*
IRState::call(TypeFunction*, tree_node*, tree_node*, Array*): Assertion
`function_type_p( func_type_node )' failed.
testcase.d: In function 'main':
testcase.d:3: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Works on DMD. Any responses/fixes are appreciated.
 --downs (why is it always me? ;_;)


-- 



More information about the D.gnu mailing list