This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20796] -Wunused warns for variable passed to constructor via function-style cast
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2005 15:31:46 -0000
- Subject: [Bug c++/20796] -Wunused warns for variable passed to constructor via function-style cast
- References: <20050406150123.20796.timb@bluearc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-06 15:31 -------
The following expression does not do what you think it does:
S s(A(i));
It declares a function which returns S as the type and takes an A which is named i.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20796