This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]