November 30, 2007 [Issue 1699] New: unexpected identifer in declaration | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1699 Summary: unexpected identifer in declaration Product: D Version: 2.008 Platform: PC OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: ddparnell@bigpond.com The following line does not compile const(const(int*) f()){} It fails with the messages ... : unexpected identifer 'f' in declarator : no identifier for declarator const(int*)() -- |
March 08, 2008 [Issue 1699] unexpected identifer in declaration | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1699 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from bugzilla@digitalmars.com 2008-03-08 01:27 ------- The correct way to declare f would be: const const(int*) f(){} or: const(int*) f() const {} -- |
Copyright © 1999-2021 by the D Language Foundation