Jump to page: 1 2
Thread overview
[Issue 13300] pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit'
Aug 15, 2014
Vladimir Panteleev
Aug 19, 2014
Kenji Hara
Aug 19, 2014
Kenji Hara
Jun 15, 2018
Andrea Fontana
Aug 25, 2018
Basile B.
Dec 18, 2018
Eduard Staniloiu
Dec 20, 2018
Eduard Staniloiu
Mar 21, 2020
Basile-z
August 15, 2014
https://issues.dlang.org/show_bug.cgi?id=13300

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
This regression affects the SDLang library: https://github.com/Abscissa/SDLang-D

--
August 19, 2014
https://issues.dlang.org/show_bug.cgi?id=13300

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |13333

--
August 19, 2014
https://issues.dlang.org/show_bug.cgi?id=13300

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

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

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/phobos/pull/2439

--
August 20, 2014
https://issues.dlang.org/show_bug.cgi?id=13300
Issue 13300 depends on issue 13333, which changed state.

Issue 13333 Summary: Incorrect error ungagging during the resolution of forward references https://issues.dlang.org/show_bug.cgi?id=13333

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

--
August 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13300

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/1baf12b102cc430229d3072433d877f5dc1b0ffb
fix Issue 13300 - pure function
'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function
'test.T.__fieldPostBlit'

https://github.com/D-Programming-Language/phobos/commit/ef1b0bcf97e12bcc6a2a3202c0f9da6660e0c13e Merge pull request #2439 from 9rnsr/fix13300

[REG2.067a] Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit'

--
June 15, 2018
https://issues.dlang.org/show_bug.cgi?id=13300

Andrea Fontana <trikkuz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |trikkuz@gmail.com
         Resolution|FIXED                       |---

--- Comment #4 from Andrea Fontana <trikkuz@gmail.com> ---
Same problem, for structs with impure postblit.
I think those functions should be templatized. Or maybe we can remove pure at
all and add a unittest to force test against pure structs.

------

import std.experimental.all;

int i;

void main()
{
    Range r;
    r.array().writeln;
}

struct Simple
{
    @disable this(); // Without this, it works.
    this(this) { i++; }

    private:
    this(int tmp) { }
}

struct Range
{
    @property Simple front() { return S(0); }
    void popFront() { count++; }
    @property empty() { return count < 3; }
    size_t count;
}

--
August 25, 2018
https://issues.dlang.org/show_bug.cgi?id=13300

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #5 from Basile B. <b2.temp@gmx.com> ---
*** Issue 18992 has been marked as a duplicate of this issue. ***

--
December 18, 2018
https://issues.dlang.org/show_bug.cgi?id=13300

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edi33416@gmail.com

--- Comment #6 from Eduard Staniloiu <edi33416@gmail.com> ---
PR - https://github.com/dlang/phobos/pull/6811

--
December 20, 2018
https://issues.dlang.org/show_bug.cgi?id=13300

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|nobody@puremagic.com        |edi33416@gmail.com

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=13300

--- Comment #7 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/c575e985b3dccce3d807165c5b98c8d1862ec366 Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit'

https://github.com/dlang/phobos/commit/c7106f02b911c7ca14e3873f5b76cadfb26c5071 Merge pull request #6811 from edi33416/issue_13300

Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.en…

--
« First   ‹ Prev
1 2