------- Comment #7 from joseph at codesourcery dot com 2006-12-03 21:05 ------- Subject: Re: integer division by zero in subexpression should be overflow
On Sun, 3 Dec 2006, manu at gcc dot gnu dot org wrote: > > The real issue is that OPT_Wdiv_by_zero needs to be enabled by -pedantic > > in order to generate an error for -pedantic-errors, as requested by > > Joseph in comment #1. > > So, we just have to replace warning by pedwarn, don't we? No, because except in evaluated parts of constant expressions this is only runtime undefined and so must be accepted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19976