Thread overview
[Issue 21398] Name clash between import and method triggers a segfault
[Issue 21398] DMD segfaults during AST visit
Nov 16
Basile-z
Nov 17
Dlang Bot
Nov 17
Dlang Bot
3 days ago
Dlang Bot
November 16
https://issues.dlang.org/show_bug.cgi?id=21398

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
> however I don't think compilers are supposed to find code so ugly they crash

yes for this kind of bug you can add the "ICE" keyword. Just did it this time.

--
November 16
https://issues.dlang.org/show_bug.cgi?id=21398

Nathan Graule <solarliner@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD segfaults during AST    |Name clash between import
                   |visit                       |and method triggers a
                   |                            |segfault

--- Comment #2 from Nathan Graule <solarliner@gmail.com> ---
It seems the segfault is due in `mem.d` because I import `free`, but also at the same time declare a method of the same name. I have updated the title in consequence.

--
November 17
https://issues.dlang.org/show_bug.cgi?id=21398

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #11972 "Issue 21398 - Name clash between import and method triggers a segfault" mentioning this issue:

- Issue 21398 - Name clash between import and method triggers a segfault

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

--
November 17
https://issues.dlang.org/show_bug.cgi?id=21398

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11972 "Issue 21398 - Name clash between import and method triggers a segfault" was merged into stable:

- e4dc0ffa5a69d01308d68a4d50b8cfdbb9ba6911 by Boris Carvajal:
  Fix Issue 21398 - Name clash between import and method triggers a segfault

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

--
3 days ago
https://issues.dlang.org/show_bug.cgi?id=21398

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

- 9664fddc015541001dd31ae649b1f246f7ce73ef by Boris Carvajal:
  Fix Issue 21398 - Name clash between import and method triggers a segfault

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

--