On Tuesday, 29 September 2015 at 08:51:42 UTC, Andrea Fontana
wrote:
This (wrong!) code:
struct ExampleStruct(S) { }
template ExampleTemplate(K)
{
enum ExampleTemplate(struct ExampleStruct(K)) = K;
}
void main()
{
}
Trigger a parser error:
dmd: parse.c:4226: Dsymbols*
Parser::parseAutoDeclarations(StorageClass, const utf8_t*):
Assertion `token.value == TOKassign' failed.
Should I fill a bug?
You should always file a bug when the compiler fails an
assertion, segfaults, or otherwise crashes.
- Jonathan M Davis