Bug 14334 – (D1 only) Forward reference error with method returning template instance equal to typeof(this)
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2015-03-25T11:23:52Z
Last change time
2019-11-07T08:03:29Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Andrej Mitrovic
Comments
Comment #0 by andrej.mitrovich — 2015-03-25T11:23:52Z
-----
struct S ( T )
{
SInt get()
{
return SInt();
}
}
alias S!(int) SInt;
void main()
{
}
-----
$ dmd test.d
> Error: alias test.SInt recursive alias declaration
Comment #1 by k.hara.pg — 2015-03-25T13:47:12Z
(In reply to Andrej Mitrovic from comment #0)
> > Error: alias test.SInt recursive alias declaration
This is a dup of 13204, and it's fixed from 2.066.1.
Comment #2 by andrej.mitrovich — 2015-03-25T21:19:15Z
(In reply to Kenji Hara from comment #1)
> (In reply to Andrej Mitrovic from comment #0)
> > > Error: alias test.SInt recursive alias declaration
>
> This is a dup of 13204, and it's fixed from 2.066.1.
It's not fixed:
http://dpaste.dzfl.pl/734b3b884325
Comment #4 by andrej.mitrovich — 2015-03-26T09:54:56Z
(In reply to Kenji Hara from comment #3)
> (In reply to Andrej Mitrovic from comment #2)
> > It's not fixed:
> > http://dpaste.dzfl.pl/734b3b884325
>
> It's using 2.065.
Ah I'm soryr, I misread your comment as 2.055.1! :)
Comment #5 by andrej.mitrovich — 2015-03-26T09:55:42Z
(In reply to Andrej Mitrovic from comment #4)
> (In reply to Kenji Hara from comment #3)
> > (In reply to Andrej Mitrovic from comment #2)
> > > It's not fixed:
> > > http://dpaste.dzfl.pl/734b3b884325
> >
> > It's using 2.065.
>
> Ah I'm soryr, I misread your comment as 2.055.1! :)
Sorry even.
Comment #6 by razvan.nitu1305 — 2019-11-07T08:03:29Z
This issue does not manifest in D2 git master and D1 is no longer supported. Closing as WORKSFORME.