The-OpenROAD-Project / OpenSTA

OpenSTA engine
GNU General Public License v3.0
388 stars 168 forks source link

Fix C++20 compilation error with requires keyword #140

Closed maliberty closed 1 year ago

maliberty commented 1 year ago

In tcl/StaTcl.i the function requireds_clk contains

  FloatSeq requires;

requires is a c++20 keyword (see https://en.cppreference.com/w/cpp/language/requires). The generated swig file won't compile with c++20. Please fix this with high priority as it is blocking for update sta in OR (we test all PRs with c++20 as that is what Google uses).