Thread overview
[Issue 14820] Templates not reevaluated inside static loop unrolling
Jul 22, 2015
Mathias LANG
Jul 22, 2015
simendsjo
Jul 23, 2015
Mathias LANG
Jul 26, 2015
Kenji Hara
Jul 27, 2015
Kenji Hara
July 22, 2015
https://issues.dlang.org/show_bug.cgi?id=14820

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang@gmail.com

--- Comment #1 from Mathias LANG <pro.mathias.lang@gmail.com> ---
I think that's a duplicate of https://issues.dlang.org/show_bug.cgi?id=9748

--
July 22, 2015
https://issues.dlang.org/show_bug.cgi?id=14820

--- Comment #2 from simendsjo <simendsjo@gmail.com> ---
(In reply to Mathias LANG from comment #1)
> I think that's a duplicate of https://issues.dlang.org/show_bug.cgi?id=9748

Yes, looks very similar (although on dynamic values rather than compile-time values). C# had a very similar issue in version 3, but it has since been changed to capture the current loop variable rather than the symbol that is reused. A breaking change, but even C#, which is very reluctant to change (more so than D), did it.

I notice that issue was filed over two years ago. What is the reason for not fixing this? Avoiding breaking change (I consider it a bug though, and so did the C# team)? Or just the lack of manpower?

--
July 23, 2015
https://issues.dlang.org/show_bug.cgi?id=14820

--- Comment #3 from Mathias LANG <pro.mathias.lang@gmail.com> ---
(In reply to simendsjo from comment #2)
> (In reply to Mathias LANG from comment #1)
> > I think that's a duplicate of https://issues.dlang.org/show_bug.cgi?id=9748
> 
> Yes, looks very similar (although on dynamic values rather than compile-time values). C# had a very similar issue in version 3, but it has since been changed to capture the current loop variable rather than the symbol that is reused. A breaking change, but even C#, which is very reluctant to change (more so than D), did it.
> 
> I notice that issue was filed over two years ago. What is the reason for not fixing this? Avoiding breaking change (I consider it a bug though, and so did the C# team)? Or just the lack of manpower?

Lack of manpower AND complexity of the issue (static foreach is an hack ATM).

--
July 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14820

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |14831

--
July 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14820

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---


*** This issue has been marked as a duplicate of issue 14831 ***

--
February 26, 2021
https://issues.dlang.org/show_bug.cgi?id=14820
Issue 14820 depends on issue 14831, which changed state.

Issue 14831 Summary: Each function local symbols should have unique mangled name https://issues.dlang.org/show_bug.cgi?id=14831

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--
February 26, 2021
https://issues.dlang.org/show_bug.cgi?id=14820
Issue 14820 depends on issue 14831, which changed state.

Issue 14831 Summary: Each function local symbols should have unique mangled name https://issues.dlang.org/show_bug.cgi?id=14831

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--
March 01, 2021
https://issues.dlang.org/show_bug.cgi?id=14820
Issue 14820 depends on issue 14831, which changed state.

Issue 14831 Summary: Each function local symbols should have unique mangled name https://issues.dlang.org/show_bug.cgi?id=14831

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--