digitalmars.D.bugs - [Issue 4865] New: Post-position attributes cannot be used with auto return functions
- d-bugmail puremagic.com (33/33) Sep 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4865
- d-bugmail puremagic.com (10/10) May 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4865
- d-bugmail puremagic.com (11/11) May 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4865
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 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: -------
Sep 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4865 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm gmail.com *** 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
http://d.puremagic.com/issues/show_bug.cgi?id=4865 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE *** 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: -------
May 06 2011