Valgrind Error: in use at exit: 72,704 bytes C++ Initialization List weirdness with char*

前端 未结 1 845
猫巷女王i
猫巷女王i 2020-12-10 06:25

Issue:

I have a weird issue that I wasn\'t expecting. I have a class called Answers and within the header is this:

class Answer
{
          


        
1条回答
  •  天命终不由人
    2020-12-10 07:12

    This is a known GCC 5.1 bug, not a valgrind bug.

    Details here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64535

    Possible workarounds: Downgrade GCC to an earlier version or wait for Valgrind to update a fix for this error. Both solutions are being worked on by their respective communities.

    0 讨论(0)
提交回复
热议问题