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++/52299] GCC warns on compile time division by zero erroneously


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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-20 17:02:03 UTC ---
I can't reproduce it with 4.4.3, but then ...


(In reply to comment #0)
> 
> alignptrtest.cpp: In instantiation of âconst size_t test<0ul>::a_â:
> alignptrtest.cpp:11:   instantiated from here
> alignptrtest.cpp:6: warning: division by zero

Your testcase doesn't have 11 lines and doesn't instantiate a template.

Please provide the right testcase!


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