[Bug c++/11964] [3.4 regression] Incorrect warning: statement has no effect for "new ARRAY[3]"

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Mon Aug 18 10:56:00 GMT 2003


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



More information about the Gcc-bugs mailing list