Opened 7 years ago

Closed 7 years ago

#11762 closed Bugs (fixed)

boost_1_59_0/boost/multiprecision/detail/default_ops.hpp:804: possible missing return

Reported by: anonymous Owned by: John Maddock
Milestone: To Be Determined Component: multiprecision
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc: dcb314@…

Description

[boost_1_59_0/boost/multiprecision/detail/default_ops.hpp:804]: (error) No 'return' statement in non-void function causes undefined behavior.

Source code is

terminal& operator = (R val) { value = val; }

Change History (3)

comment:1 by David Binderman <dcb314@…>, 7 years ago

Version: Boost 1.57.0Boost 1.59.0

comment:2 by viboes, 7 years ago

Component: Nonemultiprecision
Owner: set to John Maddock

comment:3 by John Maddock, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in https://github.com/boostorg/multiprecision/commit/360fcc9306b2ac7922d1805741f0ef29c34ef241.

Strange that none of my usual test compilers picked this up...

Many thanks, John.

Note: See TracTickets for help on using tickets.