[Bug c++/55643] [4.7/4.8 Regression] [C++11] incorrect "warning: variable ‘myVar’ set but not used" with an "enum class"-typed variable is casted to double for the use

2012-12-11 Thread dholbert at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643 --- Comment #9 from Daniel Holbert 2012-12-11 19:20:34 UTC --- Thanks for the quick turnaround!

[Bug c++/55643] g++ 4.7 gives "warning: variable ‘myVar’ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use

2012-12-10 Thread dholbert at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643 --- Comment #3 from Daniel Holbert 2012-12-10 20:43:47 UTC --- Created attachment 28918 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28918 testcase preprocessed file (from run w/ --save-temps) For reference, here's the preprocess

[Bug c++/55643] g++ 4.7 gives "warning: variable ‘myVar’ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use

2012-12-10 Thread dholbert at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643 --- Comment #2 from Daniel Holbert 2012-12-10 20:42:03 UTC --- The command I'm using to compile is: > g++-4.7 -Wall -std=c++11 gcc-warning-test.cpp

[Bug c++/55643] g++ 4.7 gives "warning: variable ‘myVar’ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use

2012-12-10 Thread dholbert at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643 --- Comment #1 from Daniel Holbert 2012-12-10 20:41:00 UTC --- Created attachment 28917 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28917 testcase cpp file

[Bug c++/55643] New: g++ 4.7 gives "warning: variable ‘myVar’ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use

2012-12-10 Thread dholbert at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643 Bug #: 55643 Summary: g++ 4.7 gives "warning: variable ‘myVar’ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use Class