Bug 16378 – Cases where empty statements warning is not emitted
Status
RESOLVED
Resolution
DUPLICATE
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-11T21:39:00Z
Last change time
2016-08-26T09:48:39Z
Assigned to
nobody
Creator
b2.temp
Comments
Comment #0 by b2.temp — 2016-08-11T21:39:47Z
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.
Comment #1 by b2.temp — 2016-08-26T09:48:39Z
*** This issue has been marked as a duplicate of issue 16430 ***