[Bug c++/36430] Cannot convert a temporary to a non-const reference even with conversion operator

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net


--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net  2008-08-21 
11:43 ---
This report is invalid. By 12.3.2,

  A conversion function is never used to convert a
  (possibly cv-qualified) object to the (possibly
  cv-qualified) same object type (or a reference to it).

Comeau warns explicitly about this, saying:

  line 2: warning: Foo::operator Foo () will not be
called for implicit or explicit conversions


-- 

gcc-bugzilla at contacts dot eelis dot net changed:

   What|Removed |Added

 CC||gcc-bugzilla at contacts dot
   ||eelis dot net


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



[Bug c++/36430] Cannot convert a temporary to a non-const reference even with conversion operator

2008-08-21 Thread paolo dot carlini at oracle dot com


--- Comment #2 from paolo dot carlini at oracle dot com  2008-08-21 12:04 
---


*** This bug has been marked as a duplicate of 26698 ***


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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