https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69972
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Bernd Schmidt from comment #3) > For C I'm thinking it should be straightforward to set/check TREE_NO_WARNING > (I have an untested patch). The duplicate warning shows that we are doing two times the same work. Wouldn't it be better to avoid that? > For the C++ testcase the problem is that the first one is a warning, while > the second one is an error - we can't really omit that. The C/C++ FEs share almost no code in this respect. It doesn't make sense to keep both issues conflated. C++ bug is now PR70057.