Bug 1699 – unexpected identifer in declaration

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2007-11-29T18:12:00Z
Last change time
2015-06-09T01:14:23Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
ddparnell

Comments

Comment #0 by ddparnell — 2007-11-29T18:12:31Z
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*)()
Comment #1 by bugzilla — 2008-03-08T01:27:33Z
The correct way to declare f would be: const const(int*) f(){} or: const(int*) f() const {}