This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34212] spurious warning: value computed is not used
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2007 02:30:01 -0000
- Subject: [Bug middle-end/34212] spurious warning: value computed is not used
- References: <bug-34212-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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