This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new warning on the 3.0 branch
- To: Sylvain Pion <Sylvain dot Pion at sophia dot inria dot fr>
- Subject: Re: new warning on the 3.0 branch
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 13 Aug 2001 17:13:58 +0200
- Cc: nathan at codesourcery dot com, gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Organization: CodeSourcery, LLC
- References: <20010813170023.E17847@zosma.inria.fr>
Sylvain Pion <Sylvain.Pion@sophia.inria.fr> writes:
| There is a new warning that appeared last week on the 3.0 branch, which I
| suspect comes from Nathan's recent changes.
| Compiling the following program with "g++ -Wall" :
|
| struct empty{};
|
| int main()
| {
| empty a, b;
| a = b;
| return 0;
| }
|
| produces the warning :
| empty_copy_warning.C:7: warning: statement with no effect
The symptoms you're describing match bug report #3989
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3989
which represents is a regression from 3.0 to 3.0.1
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com