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

          Issue ID: 16378
           Summary: Cases where empty statements warnings not emitted
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: b2.t...@gmx.com

For these sources

°°°°°°°°°°°°°°
void main()
{struct A{;}}
°°°°°°°°°°°°°°
void main()
{};°°°°°°°°°°°°°°

> Warning: use '{ }' for an empty statement, not a ';'

Should be emitted when the -w switch is passed to dmd.

--

Reply via email to