Bug 4161 – @disable after function signature has no effect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-05-05T15:08:00Z
Last change time
2012-07-27T15:13:55Z
Assigned to
nobody
Creator
k-foley

Comments

Comment #0 by k-foley — 2010-05-05T15:08:01Z
DMD 2.045 int main(string[] args) { void func() @disable {} func(); return 0; } --- This compiles without any problems. I don't know whether this should mark the function as @disabled or whether it should flag a compile error for misusing @disable. Regardless, I don't think it should accept this code.
Comment #1 by simen.kjaras — 2012-07-27T15:13:55Z
This has been fixed, but I do not know when.