[Issue 22634] New: assert for too many symbols should be error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 28 11:08:58 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22634
Issue ID: 22634
Summary: assert for too many symbols should be error
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: tim.dlang at t-online.de
void main()
{
static foreach(i; 0..65537)
{
}
}
The above code triggers an assert in src/dmd/expressionsem.d:
assert(s.localNum); // 65535 should be enough for anyone
I found it while reducing a different problem, so it may not be a problem in
real code, but it should be a normal error instead of an assert.
--
More information about the Digitalmars-d-bugs
mailing list