This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "dholbert at cs dot stanford.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Dec 2012 20:43:47 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-55643-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643
--- Comment #3 from Daniel Holbert <dholbert at cs dot stanford.edu> 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 preprocessed .ii file from running
> g++-4.7 --save-temps -Wall -std=c++11 gcc-warning-test.cpp
per the last recommendation at http://gcc.gnu.org/bugs/#need