www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21766] New: [The D Bug Tracker]

https://issues.dlang.org/show_bug.cgi?id=21766

          Issue ID: 21766
           Summary: [The D Bug Tracker]
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: Ajieskola gmail.com

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`"

--
Mar 25 2021