This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13308] New: C++ operator ambiguity error


I've been trying to compile a file on a i686-pc-cygwin host using sh-elf cross 
compiler version 3.3.2.  

Compiler build configuration options:
------------------------------------------
Configured with: ../gcc-3.3.2/configure --target=sh-elf --prefix=/gcc_build/sh4
--enable-languages=c,c++ --with-newlib --program-prefix=sh-elf- --disable-thread
s --with-gxx-include-dir=/gcc_build/sh4/sh-elf/include -v
Thread model: single
gcc version 3.3.2


Command line that causes the problem:
------------------------------------------
$ sh-elf-gcc -v -save-temps -Wall -fno-exceptions -fno-rtti \
-fno-implicit-templates -m4 -mb -fno-delayed-branch -O2 \
-fomit-frame-pointer -c test_class.cpp

Problem:
------------------------------------------
test_class.cpp: In function `int whatever(CDSPString*, int)':
test_class.cpp:53: error: ISO C++ says that `CDSPString operator+(const char*,
   const CDSPString&)' and `operator+' are ambiguous even though the worst
   conversion for the former is better than the worst conversion for the latter

-- 
           Summary: C++ operator ambiguity error
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alexander dot gdalevich at dvtsensors dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin
GCC target triplet: sh-*-elf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]