Thread overview
[Issue 22975] 3 cyclic aliases with meaningful overloads not caught [ice]
Apr 04, 2022
mhh
Apr 04, 2022
mhh
Dec 26, 2022
Iain Buclaw
Dec 27, 2022
Iain Buclaw
Dec 27, 2022
Dlang Bot
Dec 31, 2022
Dlang Bot
Jan 01, 2023
Dlang Bot
April 02, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |schveiguy@gmail.com

--
April 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com
           Severity|normal                      |regression

--- Comment #1 from mhh <maxhaton@gmail.com> ---
2.072.2 to 2.094.2: Failure with output:
-----
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function
`_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
-----

Since      2.095.1: Segfault and no output


This is a regression.

--
April 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

--- Comment #2 from mhh <maxhaton@gmail.com> ---
This forms a cycle in the overload list of `foo` (so overload apply becomes an
infinite loop).

--
December 26, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Introduced by https://github.com/dlang/dmd/pull/8429

--
December 27, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> ---
To complete the circle, the test case should be:

---
void foo(int){};
alias bar=foo;
void bar(bool){}
alias foobar=bar;
alias foo=foobar;
void foobar(float){}
---

As this constructs a tree where no single node representation is directly connected to any of its cyclic references.

--
December 27, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #14744 "fix Issue 22975 - ICE: 3 cyclic aliases with meaningful overloads not caught" fixing this issue:

- fix Issue 22975 - ICE: 3 cyclic aliases with meaningful overloads not caught

https://github.com/dlang/dmd/pull/14744

--
December 31, 2022
https://issues.dlang.org/show_bug.cgi?id=22975

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14744 "fix Issue 22975 - ICE: 3 cyclic aliases with meaningful overloads not caught" was merged into stable:

- f105e264d66ccbe1618b4dd2c4817c2eff2d7f30 by Iain Buclaw:
  fix Issue 22975 - ICE: 3 cyclic aliases with meaningful overloads not caught

https://github.com/dlang/dmd/pull/14744

--
January 01, 2023
https://issues.dlang.org/show_bug.cgi?id=22975

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14765 "merge stable" was merged into master:

- 6a406a59fe650f5ff90ce1dbca04f47f497f20c5 by Iain Buclaw:
  fix Issue 22975 - ICE: 3 cyclic aliases with meaningful overloads not caught

https://github.com/dlang/dmd/pull/14765

--