This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/19976] integer division by zero in subexpression should be overflow



------- Comment #6 from manu at gcc dot gnu dot org  2006-12-03 21:02 -------
(In reply to comment #3)
> Hi Manual,

Manuel (or Manu) http://en.wikipedia.org/wiki/Manuel

not manual: http://en.wikipedia.org/wiki/Manual

:-)

> 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?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19976


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]