Bug 8092 – Static accepted without declaration

Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-13T05:56:00Z
Last change time
2015-06-09T05:15:05Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
szadows

Comments

Comment #0 by szadows — 2012-05-13T05:56:52Z
Compiling code below should give syntax error, when it does not. void main(){} struct Foo { static } Demo: http://ideone.com/f0iAV
Comment #1 by yebblies — 2013-11-16T22:16:06Z
Now prints: testx.d(6): Error: Declaration expected, not '}'