Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764647 - dev-cpp/benchmark: build failure on gcc-11
Summary: dev-cpp/benchmark: build failure on gcc-11
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Breathitt Gray
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-01-09 19:03 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-01-11 17:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-09 19:03:07 UTC
benchmark fails to build on gcc-11 as:

  error: 'numeric_limits' is not a member of 'std'
   17 |   static const T kmax = std::numeric_limits<T>::max();
      |                              ^~~~~~~~~~~~~~

Fixed upstream as:
Comment 1 Larry the Git Cow gentoo-dev 2021-01-11 17:47:41 UTC
The bug has been closed via the following commit(s):

commit 4add4f893cf2fb16b18d3c15bc9948a80802b66f
Author:     William Breathitt Gray <>
AuthorDate: 2021-01-09 21:37:54 +0000
Commit:     Sergei Trofimovich <>
CommitDate: 2021-01-11 17:45:25 +0000

    dev-cpp/benchmark: Add patch to fix build failure on gcc-11
    Signed-off-by: William Breathitt Gray <>
    Signed-off-by: Sergei Trofimovich <>

 dev-cpp/benchmark/benchmark-1.5.2.ebuild           |  4 +++
 ...chmark-1.5.2-Add-missing-limits-inclusion.patch | 30 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)