[Bug libstdc++/105844] [10/11/12/13 Regression] std::lcm(50000, 49999) is UB but accepted in a constexpr due to cast to unsigned
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 6 14:22:08 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105844
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-06-06
Priority|P3 |P2
Status|UNCONFIRMED |ASSIGNED
Known to fail| |10.3.0, 11.1.0, 12.1.0,
| |13.0, 9.4.0
Known to work| |10.2.0, 9.3.0
Ever confirmed|0 |1
Summary|std::lcm(50000, 49999) is |[10/11/12/13 Regression]
|UB but accepted in a |std::lcm(50000, 49999) is
|constexpr due to cast to |UB but accepted in a
|unsigned |constexpr due to cast to
| |unsigned
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Keywords| |accepts-invalid
Target Milestone|--- |10.4
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a regression introduced by the fix for PR 92978.
More information about the Gcc-bugs
mailing list