https://issues.dlang.org/show_bug.cgi?id=15262
Issue ID: 15262
Summary: [dmd-internal] Duplicated initialization in Token
struct static constructor
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
In tokens.d:
extern (C++) struct Token
{
...
static this()
{
...
Token.tochars[TOKandass] = "&=";
Token.tochars[TOKorass] = "|="; // <- initialization
Token.tochars[TOKcatass] = "~=";
...
Token.tochars[TOKnotidentity] = "!is";
Token.tochars[TOKorass] = "|="; // <- duplicated
Token.tochars[TOKidentifier] = "identifier";
...
}
}
--