Bug 3654 – auto return doesn't work for nested functions

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-12-26T18:55:00Z
Last change time
2015-06-09T01:27:03Z
Keywords
rejects-valid, spec
Assigned to
nobody
Creator
witold.baryluk+d

Comments

Comment #0 by witold.baryluk+d — 2009-12-26T18:55:31Z
Title says it all, example: module aaa; void foo() { auto bar() { return 1; } } $ dmd2.037 -c aaa.d aaa.d(2): no identifier for declarator bar aaa.d(2): semicolon expected, not '{'
Comment #1 by bearophile_hugs — 2010-07-01T09:34:46Z
I close this bug as duplicate because despite being older the bug 4401 seems to have some kind of patch. *** This issue has been marked as a duplicate of issue 4401 ***