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!