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 , 7 years ago
| Version: | Boost 1.57.0 → Boost 1.59.0 | 
|---|
comment:2 by , 7 years ago
| Component: | None → multiprecision | 
|---|---|
| Owner: | set to | 
comment:3 by , 7 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Fixed in https://github.com/boostorg/multiprecision/commit/360fcc9306b2ac7922d1805741f0ef29c34ef241.
Strange that none of my usual test compilers picked this up...
Many thanks, John.