On Tue, 5 May 2020, Alexander Monakov wrote: > > > On Tue, 5 May 2020, Richard Biener wrote: > > > > > Pushed as obvious. > > > > C++ makes mismatched prototype and implementation OK. > > (because of overloads)
Yes, of course. I'll also try to remember to compile at least one unaffected cc1 ... > I think this would have been caught if GCC enabled -Wmissing-declarations > during bootstrap, and the main reason we have this problem is that the > similar warning in C is named differently (-Wmissing-prototypes), and > we didn't change -Wmissing-prototypes to -Wmissing-declarations when > transitioning to C++ even though the former is a complete no-op for C++. > > This is PR bootstrap/91972. > > Alexander