This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82309] Compiled binary received SIGSEGV when -g


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

Sergey Markelov <sergio_nsk at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Sergey Markelov <sergio_nsk at yahoo dot de> ---
(In reply to Andrew Pinski from comment #3)
> You have a temporary which you are using after it has gone out of scope.

Thank you Andrew. Using 'auto' was my error. The proper line should be
    Vector sum = v0 + v1 + v2;

(Sorry, if you try this updated line in the minimized bug.cpp, it will not
work. It is ok, it works in my full code with paradox templates).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]