Bug 8462 – recursive alias error with function pointer
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-29T09:53:00Z
Last change time
2015-02-18T03:36:55Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2012-07-29T09:53:06Z
alias void function(Class.Type arg) FuncPtr;
class Class
{
enum Type { Foo }
alias FuncPtr* funcPtrPtr;
}
void main() { }
test.d(3): Error: alias test.FuncPtr recursive alias declaration
If you move "FuncPtr" below the class it works.
Comment #1 by hsteoh — 2014-08-18T17:19:01Z
Works on latest git HEAD. Tested on Linux/64bit. Please reopen if it still fails on other platforms.
Comment #2 by k.hara.pg — 2014-09-14T13:12:20Z
*** This issue has been marked as a duplicate of issue 13204 ***
Comment #3 by github-bugzilla — 2014-09-14T21:55:52Z