[Bug c++/20992] New: error as no matching function with g++

dtemirbulatov at ru dot mvista dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 13 13:34:00 GMT 2005


g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-language=c,c++
--prefix=/home/dinar/work/gcc-builds/gcc-4.0-i686-pc-linux-gnu/
Thread model: posix
gcc version 4.0.0 20050412 (prerelease)

while compiling source code:

g++ sample.c -c
sample.c: In function ‘int main()’:
sample.c:13: error: no matching function for call to ‘A::A(A)’
sample.c:4: note: candidates are: A::A(A&)
sample.c:13: error:   initializing temporary from result of ‘A::A(T) [with T = int]’

-- 
           Summary: error as no matching function with g++
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dtemirbulatov at ru dot mvista dot com
                CC: dtemirbulatov at ru dot mvista dot com,gcc-bugs at gcc
                    dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list