https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90887
Bug ID: 90887 Summary: [10 Regression] r272186 causes -fcompare-debug failure Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: redi at gcc dot gnu.org Target Milestone: --- The commit r272186 causes that our program fails with -fcompare-debug That's somewhat odd as it is a libstdc++ change, which shouldn't cause this. Admittedly, I did only incrementation builds for the bisecting, but it is robust: going to this revision causes the fail and going to the version before works. Triggering the bugs is not that simple - in my case, it only fails for g++ ... /full/path.cc even using ../rel/path.cc made it pass; likewise compiling with "-E" will produce a file which does compile. The options required also don't make much sense; the reduced options were (besides includes/defines): g++ -std=c++2a -fcompare-debug -Woverloaded-virtual -Wlogical-op -g3 -Wall -fsanitize=float-cast-overflow -fsanitize=float-divide-by-zero -fsanitize=undefined -fno-sanitize=vptr,null The commit which triggers the issue is r272186 Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Jun 12 14:52:02 2019 +0000 Replace std::to_string for integers with optimized version I will try to drill a bit deeper to understand what goes on.