[Issue 13675] New: enum type used with template causes compiler to segfault
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Nov 3 15:09:20 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13675
Issue ID: 13675
Summary: enum type used with template causes compiler to
segfault
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: alanb at ucora.com
This used to work OK with dmd_2.064.2 amd64
The compiler now segfaults with dmd 2.066.1 amd64
enum S; // <- problem point
bool foo( T : S )()
{
return false;
}
void bar()
{
if (foo!S)
{}
}
int main()
{
bar();
return 0;
}
$ dmd main.d
Segmentation fault
Other user defined types such as struct and class will work and enum with user
defined values will work too, eg enum S {a,b,c}.
--
More information about the Digitalmars-d-bugs
mailing list