Bug 1443 – ICE on template inference three-liner

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-08-27T10:38:00Z
Last change time
2015-06-09T05:14:59Z
Assigned to
dvdfrdmn
Creator
default_357-line

Comments

Comment #0 by default_357-line — 2007-08-27T10:38:50Z
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? ;_;)
Comment #1 by dvdfrdmn — 2007-08-29T18:31:48Z
Fixed in svn rev 148 / release 0.25