[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-17 11:04 --- This is perfectly valid C++. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39205

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-02-17 11:06 --- Yeah... -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread pgrealis at yahoo-inc dot com
--- Comment #3 from pgrealis at yahoo-inc dot com 2009-02-17 11:20 --- (In reply to comment #1) This is perfectly valid C++. I never claimed anything different. Is your argument that no warning should be issued for perfectly valid C++? (int)1.5 is perfectly valid C++, yet

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-02-17 11:32 --- Refute? This is not philosophy. If the maintainers believe there is nothing wrong here - and other extremely high-quality C++ front-end agree, by the way - the issue is closed. -- paolo dot carlini at

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2009-02-17 15:48 --- (In reply to comment #0) I can't think of a scenario where one would want to write x.f() over X::f() when f() is static. I'd like a warning for this so I can catch with -Werror. FWIW, I've seen x.y when y is a

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2009-02-17 15:51 --- Thanks Martin ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39205