Thread overview | |||||
---|---|---|---|---|---|
|
September 14, 2010 [Issue 4865] New: Post-position attributes cannot be used with auto return functions | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4865 Summary: Post-position attributes cannot be used with auto return functions Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: samukha@voliacable.com --- Comment #0 from Max Samukha <samukha@voliacable.com> 2010-09-14 07:47:27 PDT --- struct S { auto foo() const //line 8 { return 1; //line 10 } } void main() { } test.d(8): no identifier for declarator foo test.d(8): semicolon expected, not 'pure' test.d(10): Declaration expected, not 'return' Applies to any attribute that can be specified after the declaration. The example compiles if the return type is explicitly specified or the attribute is put in front of the declaration. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 06, 2011 [Issue 4865] Post-position attributes cannot be used with auto return functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | http://d.puremagic.com/issues/show_bug.cgi?id=4865 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm@gmail.com --- Comment #1 from kennytm@gmail.com 2011-05-06 01:59:11 PDT --- *** Issue 5867 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 06, 2011 [Issue 4865] Post-position attributes cannot be used with auto return functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | http://d.puremagic.com/issues/show_bug.cgi?id=4865 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from kennytm@gmail.com 2011-05-06 02:02:17 PDT --- *** This issue has been marked as a duplicate of issue 4040 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation