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 middle-end/34212] spurious warning: value computed is not used



------- Comment #1 from pluto at agmk dot net  2007-11-24 02:30 -------
the warning isn't emitted when i change ++r_ into r_++.
t.cpp.003t.original changes:

-  (void) NON_LVALUE_EXPR < ++((struct X<int,false> *) this)->r_> >>>
+  (void) ((struct X<int,false> *) this)->r_++  >>>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34212


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