Permalink
Browse files

fix Issue 7252 - ICE(template.c): 'global.errors' on line 4893 in fil…

…e 'template.c'
  • Loading branch information...
1 parent 8913c36 commit 128c9fc79a4f12382c1a88213f8bb3afa3c0a069 @9rnsr 9rnsr committed Dec 25, 2012
Showing with 11 additions and 1 deletion.
  1. +1 −1 src/mtype.c
  2. +10 −0 test/compilable/test7252.d
View
@@ -1650,7 +1650,7 @@ Type *Type::merge()
if (ty == Tinstance) return this;
if (ty == Taarray && !((TypeAArray *)this)->index->merge()->deco)
return this;
- if (nextOf() && !nextOf()->merge()->deco)
+ if (nextOf() && !nextOf()->deco)
return this;
//printf("merge(%s)\n", toChars());
View
@@ -0,0 +1,10 @@
+alias char* function() Func;
+
+alias const char* function() CFunc;
+
+void to(S)(S) { }
+
+void foo(CFunc cFunc)
+{
+ to(cFunc());
+}

0 comments on commit 128c9fc

Please sign in to comment.