[Issue 10603] New: Refused pure attribute on the left for function pointer argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 10 17:39:32 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10603
Summary: Refused pure attribute on the left for function
pointer argument
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-07-10 17:39:31 PDT ---
void foo(int function(int) pure f1) {} // OK
void bar(pure int function(int) f2) {} // error
void main() {
int function(int) pure f3; // OK
pure int function(int) f4; // OK
}
DMD 2.064alpha gives:
test.d(2): Error: basic type expected, not pure
test.d(2): Error: found 'pure' when expecting ')'
test.d(2): Error: semicolon expected following function declaration
test.d(2): Error: semicolon expected, not ')'
test.d(2): Error: Declaration expected, not ')'
test.d(6): Error: unrecognized declaration
--
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