[Issue 4161] New: @disable after function signature has no effect
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 5 15:08:02 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4161
Summary: @disable after function signature has no effect
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k-foley at onu.edu
--- Comment #0 from Kyle Foley <k-foley at onu.edu> 2010-05-05 15:08:01 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list