baidu / babylon

High-Performance C++ Fundamental Library
Apache License 2.0
489 stars 61 forks source link

Remove some suppress of -Wmaybe-uninitialized after gcc fix false positive issue #68

Open oathdruid opened 2 weeks ago

oathdruid commented 2 weeks ago

Minimal Reproduction

#include <regex>
#include <string>

int main() {
  ::std::string str;
  ::std::regex re(str);
  return 0;
}

g++ -Werror=maybe-uninitialized -O1 -fsanitize=address https://godbolt.org/z/jvrdhezen https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105616

Known Defective Versions (up to 2024-10-24)

GCC-14 14.1 :x: 14.2 :x:
GCC-13 13.1 :x: 13.2 :x: 13.3 :x:
GCC-12 12.1 :x: 12.2 :x: 12.3 :x: 12.4 :x:
GCC-11 11.1 :white_check_mark: 11.2 :white_check_mark: 11.3 :white_check_mark: 11.4 :white_check_mark: