Bug 21766 – Bad message for missing auto initializer after comma

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-25T11:19:50Z
Last change time
2024-12-13T19:15:28Z
Assigned to
No Owner
Creator
Ate Eskola
Moved to GitHub: dmd#19896 →

Comments

Comment #0 by Ajieskola — 2021-03-25T11:19:50Z
Given program auto a = 5, b; DMD outputs app.d(1): Error: identifier expected following comma app.d(1): Error: no identifier for declarator `b` There is an identifier after comma. I'd expect something like "initializer required for `auto` declaration `b`"
Comment #1 by robert.schadek — 2024-12-13T19:15:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19896 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB