This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11964] [3.4 regression] Incorrect warning: statement has no effect for "new ARRAY[3]"
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 10:56:21 -0000
- Subject: [Bug c++/11964] [3.4 regression] Incorrect warning: statement has no effect for "new ARRAY[3]"
- References: <20030818104242.11964.gerald@pfeifer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11964
------- Additional Comments From gdr at integrable-solutions dot net 2003-08-18 10:56 -------
Subject: Re: New: Incorrect warning: statement has no effect for new ARRAY[}
"gerald at pfeifer dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| For the following snippet we are getting two warnings of the form
| x.cc: In constructor `C::C()':
| x.cc:11: warning: statement has no effect
| x.cc: In constructor `C::C(TERM*)':
| x.cc:16: warning: statement has no effect
Phew! Did you have a chance to test whether this is a recent
regression? Clearly this is bogus. I suspect the middle/back end
trying to mess with things it has no business in.
-- Gaby