[all-commits] [llvm/llvm-project] fe0d27: [libc++][ratio] Avoids accepting unrelated types. ...

Mark de Wever via All-commits all-commits at lists.llvm.org
Sun Feb 11 04:54:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe0d277f31d3369de1fd92ad8dd8044f5b1d4ed7
      https://github.com/llvm/llvm-project/commit/fe0d277f31d3369de1fd92ad8dd8044f5b1d4ed7
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-02-11 (Sun, 11 Feb 2024)

  Changed paths:
    M libcxx/include/ratio
    A libcxx/test/std/utilities/ratio/ratio.arithmetic/R1_R2_requirement.verify.cpp
    A libcxx/test/std/utilities/ratio/ratio.comparison/R1_R2_requirement.verify.cpp
    A libcxx/test/std/utilities/ratio/ratio.comparison/R1_R2_requirement_v.verify.cpp

  Log Message:
  -----------
  [libc++][ratio] Avoids accepting unrelated types. (#80491)

The arithmetic and comparison operators are ill-formed when R1 or R2 is
not a std::ratio.

Fixes: https://github.com/llvm/llvm-project/issues/63753




More information about the All-commits mailing list