xyz::operator xyz &() gets called implicitly. I'm told that it shouldn't.

Is this intended behaviour and will it stay?

$ LC_ALL=C gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.3-20070608/configure
--prefix=/opt/unstable/gcc-4.3-20070608 --enable-languages=c,c++
--disable-multilib
Thread model: posix
gcc version 4.3.0 20070608 (experimental)


-- 
           Summary: Supposedly illegal conversion compiles without errors
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aribrei at arcor dot de
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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

Reply via email to