[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-03-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Paolo Carlini changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-03-12 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 --- Comment #11 from paolo at gcc dot gnu.org 2012-03-12 19:29:42 UTC --- Author: paolo Date: Mon Mar 12 19:29:38 2012 New Revision: 185264 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185264 Log: /cp 2012-03-12 Paolo Carlini PR

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-03-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #9 f

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Known to fail|

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread joseph.h.garvin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 --- Comment #7 from Joseph Garvin 2012-02-20 17:56:20 UTC --- Sorry, I should have copy and pasted the whole file. I was trying to save people's time by providing a condensed snippet ;p (In reply to comment #6) > This reproduces it: > > templat

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW --- Comment #6 from Jonathan Wakely

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 --- Comment #5 from Jonathan Wakely 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: instantiate

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4 f

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread joseph.h.garvin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 --- Comment #3 from Joseph Garvin 2012-02-20 16:47:23 UTC --- Also this is x86-64, which could be relevant since it affects the underlying type of std::size_t.

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread joseph.h.garvin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 --- Comment #2 from Joseph Garvin 2012-02-20 16:45:21 UTC --- #include template struct test { static const std::size_t a_ = x ? 10 / x : 10; }; I just forgot to copy and paste the include. My command line is just "g++ alignptrtest.cpp"

[Bug c++/52299] GCC warns on compile time division by zero erroneously

2012-02-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52299 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|