1377
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Sean Kelly <sean@f4.ca>
|
|
6 // @date@ 2006-12-28
|
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=763
|
|
8 // @desc@ [Issue 763] Segfault compiling template code on Linux
|
|
9
|
|
10 module /*dstress.*/compile.t.template_55_A;
|
|
11
|
|
12 struct IsEqual( T ){
|
|
13 bool opCall( ){
|
|
14 return p1 = p2;
|
|
15 }
|
|
16 }
|
|
17
|
|
18 size_t bar( Elem, Pred = IsEqual!(Elem) )(){
|
|
19 return 0;
|
|
20 }
|
|
21
|
|
22 template find( Buf ){
|
|
23 void find(){
|
|
24 bar!(typeof(Buf[0]))();
|
|
25 }
|
|
26 }
|