Menu

latest cppcheck: coredump due to (?) template simplification

Martin
2021-04-20
2021-04-26
  • Martin

    Martin - 2021-04-20

    Hi,

    cppcheck head currently coredumps on the attached file with:

    Checking 21-04-20.cpp ...
    /usr/include/c++/7/debug/vector:417:
    Error: attempt to subscript container with out-of-bounds index 1, but
    container only holds 1 elements.

    Objects involved in the operation:
    sequence "this" @ 0x0x56474ab3de28 {
    type = std::__debug::vector<templatesimplifier::tokenandname, std::allocator<templatesimplifier::tokenandname=""> >;
    }
    Aborted (core dumped)</templatesimplifier::tokenandname,>

    Could you please check?

    Thanks,
    Martin

     
  • Alexander Mai

    Alexander Mai - 2021-04-20

    I can confirm the issue and have created a ticket for it: https://trac.cppcheck.net/ticket/10258

     
  • Robert Reif

    Robert Reif - 2021-04-20

    Can you git bisect this to a commit?

     
  • Martin

    Martin - 2021-04-26

    It does work now, thanks for fixing it so quickly!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.