Parser assertion

Andrea Fontana via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 29 01:51:40 PDT 2015


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?



More information about the Digitalmars-d mailing list