[Bug c++/13446] [3.3/3.4 regression] gcc uses cast operator when constructing an unnamed instance

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 5 21:20:00 GMT 2004


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-01-05 21:20 -------
This is not a bug.

[dcl.init.ref] clearly requires that the conversion operator be chosen because
"S(3)" is not an rvalue.

There are no open issues with the commitee about this behavior, but if you think
that this is a defect in the standard you should raise it with the committee.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13446



More information about the Gcc-bugs mailing list