Menu ▾ ▴

#1022 Fix build on gcc-11: assertion failed: comparison object must be invocable as const

Undefined
fixed
build (10)
Bug_Report
2021-08-15
2020-10-11
No

Fix build on gcc-11 It's a worward of downstream https://bugs.gentoo.org/732818 bug where codeblocks build fails on gcc-11 (from git) as:

"""
openfileslistplugin.cpp:440:60: required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/include/g++-v11/bits/stl_tree.h:782:15: error: static assertion failed: comparison object must be invocable as const
782 | is_invocable_v<const _compare&,="" const="" _key&,="" _key&="">,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""</const>

Attached patch (mask as 'const` for operator()) fixes build for me.

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2021-08-15
    • labels: --> build
    • status: open --> fixed
    • assigned_to: Teodor Petrov
    • Type: Undefined --> Bug_Report
     
  • Teodor Petrov

    Teodor Petrov - 2021-08-15

    Fixed in [r12303].

     

    Related

    Commit: [r12303]


Log in to post a comment.