[Issue 4640] New: nothrow before nested function signature doesn't compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 13 03:07:40 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4640
Summary: nothrow before nested function signature doesn't
compile
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at kyllingen.net
--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-08-13 03:07:39 PDT ---
This doesn't compile:
nothrow void foo()
{
nothrow void bar() { }
bar();
}
test.d(1): Error: function test.foo 'foo' is nothrow yet may throw
Moving 'nothrow' to the other side of the nested function's signature works:
nothrow void foo()
{
void bar() nothrow { }
bar();
}
Could be related to bug 3924, but I don't think this case is covered there.
--
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