This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52299] GCC warns on compile time division by zero erroneously
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Feb 2012 17:02:03 +0000
- Subject: [Bug c++/52299] GCC warns on compile time division by zero erroneously
- Auto-submitted: auto-generated
- References: <bug-52299-4@http.gcc.gnu.org/bugzilla/>
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!