[Bug c++/41060] Wconversion Ignores static_cast

2009-12-25 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-12-25 22:25 --- Feedback not forthcoming. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/41060] Wconversion Ignores static_cast

2009-09-17 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41060

[Bug c++/41060] Wconversion Ignores static_cast

2009-08-14 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2009-08-14 09:51 --- Do you have a testcase? I tried this and static_cast behaves the same as the C-style cast: int i1 = 0.5; int i2 = (int)0.5; int i3 = static_castint(0.5); Only the first line gives a warning. --

[Bug c++/41060] Wconversion Ignores static_cast

2009-08-14 Thread robert dot stewart at sig dot com
--- Comment #2 from robert dot stewart at sig dot com 2009-08-14 12:23 --- I'll try to create a test case. As usual, it appears in complex library code rather than in a simple context. Most (all?) of the cases in which I observed it were in class or function templates, so it may be