Skip to content

Commit

Permalink
Merge pull request #4751 from CyberShadow/pull-20150618-124347
Browse files Browse the repository at this point in the history
fix Issue 14710 - VC-built DMD crashes on templated variadic function IFTI
  • Loading branch information
ibuclaw committed Jun 19, 2015
2 parents 94a6afd + aaf728b commit 2604959
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dmd_msc.vcproj
Expand Up @@ -1428,6 +1428,10 @@
RelativePath=".\root\man.c"
>
</File>
<File
RelativePath=".\root\newdelete.c"
>
</File>
<File
RelativePath=".\root\object.c"
>
Expand Down
1 change: 1 addition & 0 deletions src/dmd_msc.vcxproj
Expand Up @@ -228,6 +228,7 @@
<ClCompile Include="root\checkedint.c" />
<ClCompile Include="root\longdouble.c" />
<ClCompile Include="root\man.c" />
<ClCompile Include="root\newdelete.c" />
<ClCompile Include="root\port.c" />
<ClCompile Include="root\response.c" />
<ClCompile Include="root\rmem.c" />
Expand Down
3 changes: 3 additions & 0 deletions src/dmd_msc.vcxproj.filters
Expand Up @@ -435,6 +435,9 @@
<ClCompile Include="root\man.c">
<Filter>src\root</Filter>
</ClCompile>
<ClCompile Include="root\newdelete.c">
<Filter>src\root</Filter>
</ClCompile>
<ClCompile Include="root\port.c">
<Filter>src\root</Filter>
</ClCompile>
Expand Down
13 changes: 13 additions & 0 deletions test/compilable/compile1.d
Expand Up @@ -118,6 +118,19 @@ auto bug6650(X)(X y)
static assert(!is(typeof(bug6650!(int)(6))));
static assert(!is(typeof(bug6650!(int)(18))));

/**************************************************
14710 VC-built DMD crashes on templated variadic function IFTI
**************************************************/

void bug14710a(T)(T val, T[] arr...)
{
}

void bug14710b()
{
bug14710a("", "");
}

/**************************************************
6661 Templates instantiated only through is(typeof()) shouldn't cause errors
**************************************************/
Expand Down

0 comments on commit 2604959

Please sign in to comment.