Menu

internalAstError for decltype of pair with container

Chard
3 days ago
3 days ago
  • Chard

    Chard - 3 days ago

    Invoked against repo at: 8e62a241ae1ee4ead0144e9573b129b989c58af5

    #include <pair>
    #include <vector>
    
    void ast()
    {
        struct S {};
        std::pair<int, std::vector<S>> p;
        std::count_if(p.second.begin(), p.second.end(),[](decltype(p.second) v)->bool
        {
            return true;
        });
    }
    
     
  • CHR

    CHR - 3 days ago

    Thanks for reporting, this should be covered by https://trac.cppcheck.net/ticket/10739

     

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.