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++/11964] [3.4 regression] Incorrect warning: statement has no effect for "new ARRAY[3]"


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


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