[Bug c++/20796] -Wunused warns for variable passed to constructor via function-style cast

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 6 15:31:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list