https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91774

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-09-16
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
When you say

"The statement that triggers the bug:

    A a;
    B b;
    auto index = (something);

    a[index].x = b.CalcFunc();

The equivalent statement that avoids the bug:

    A a;
    B b;
    auto index = (something);

    {
        auto temp = b.CalcFunc();
        a[index].x = temp;
    }"

which part of the code of the original source file needs to be modified
in what way to avoid the bug?

Reply via email to