Commit 7e76cef8 authored by Patrick Palka's avatar Patrick Palka
Browse files

libstdc++: Avoid double-deref of __first in ranges::minmax [PR104858]

	PR libstdc++/104858

libstdc++-v3/ChangeLog:

	* include/bits/ranges_algo.h (__minmax_fn): Avoid dereferencing
	__first twice at the start.
	* testsuite/25_algorithms/minmax/constrained.cc (test06): New test.
parent eb3f2e93
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment