From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28324 invoked by alias); 2 Feb 2004 14:50:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28316 invoked by uid 48); 2 Feb 2004 14:50:17 -0000 Date: Mon, 02 Feb 2004 14:50:00 -0000 From: "bkramer at ciprico dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040202145010.13979.bkramer@ciprico.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13979] New: no matching function for call with derived class arguments X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg00161.txt.bz2 List-Id: When supplying a derived class as the argument to a function it cannot match the signature. This works under 3.2.2. Reading specs from /devel/new_compiler/engsrc/tools/linux/lib/gcc-lib/powerpc-wrs-vxworks/3.4.0/specs Configured with: ../../src/gcc/configure --target=powerpc-wrs-vxworks --prefix=/devel/gcc-vxworks --enable-languages=c,c++ --enable-thread=vxworks --with-headers=/devel/Tornado/target/h --with-gnu-ld --with-gnu-as --enable-altivec --enable-long-long Thread model: vxworks gcc version 3.4.0 20040130 (prerelease) /devel/new_compiler/engsrc/tools/linux/bin/../libexec/gcc/powerpc-wrs-vxworks/3.4.0/cc1plus -E -quiet -nostdinc -v -I/devel/new_compiler/engsrc/tools/Tornado/target/config/all -I/devel/new_compiler/engsrc/tools/Tornado/target/src/config -I/devel/new_compiler/engsrc/tools/Tornado/target/src/drv -I/devel/new_compiler/engsrc/tools/Tornado/target/h -I/devel/new_compiler/engsrc/tools/Tornado/target/h/c++/3.4.0-O2 -iprefix /devel/new_compiler/engsrc/tools/linux/bin/../lib/gcc/powerpc-wrs-vxworks/3.4.0/ -isystem /devel/new_compiler/engsrc/tools/linux/lib/gcc-lib/include -isystem /devel/new_compiler/engsrc/tools/linux/powerpc-wrs-vxworks/bin/include -DCPU_FAMILY=PPC -D__ppc -D__EABI__ -DCPU=PPC603 -D__hardfp -DVXWORKS -DROM_SIZE=0x00080000 -DRAM_LOW_ADRS=0x00010000 -DRAM_HIGH_ADRS=0x01000000 Test.cpp -mcpu=603 -mstrict-align -mstrict-align -Wall -fno-exceptions -fno-builtin -fno-exceptions -fworking-directory -o Test.ii ignoring nonexistent directory "/devel/new_compiler/engsrc/tools/linux/lib/gcc-lib/include" ignoring nonexistent directory "/devel/new_compiler/engsrc/tools/linux/powerpc-wrs-vxworks/bin/include" ignoring nonexistent directory "/devel/new_compiler/engsrc/tools/Tornado/target/h/c++/3.4.0-O2" #include "..." search starts here: #include <...> search starts here: /devel/new_compiler/engsrc/tools/Tornado/target/config/all /devel/new_compiler/engsrc/tools/Tornado/target/src/config /devel/new_compiler/engsrc/tools/Tornado/target/src/drv /devel/new_compiler/engsrc/tools/Tornado/target/h End of search list. /devel/new_compiler/engsrc/tools/linux/bin/../libexec/gcc/powerpc-wrs-vxworks/3.4.0/cc1plus -fpreprocessed Test.ii -mcpu=603 -mstrict-align -quiet -dumpbase Test.cpp -mstrict-align -auxbase Test -g -gdwarf-2 -Wall -version -fno-exceptions -fno-builtin -fno-exceptions -o Test.s GNU C++ version 3.4.0 20040130 (prerelease) (powerpc-wrs-vxworks) compiled by GNU C version 3.2.2 20030222 (Red Hat Linux 3.2.2-5). GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63140 Test.cpp: In function `void test()': Test.cpp:117: error: no matching function for call to `SCSI::Dispatcher::dispatch(SCSI::TaskId&, SCSI::TaskType&, SCSI::LunId&, uint8*&, uint32&, Derived::DTaskData*&, Derived::Adapter&)' Test.cpp:62: note: candidates are: SCSI::Dispatcher::Return SCSI::Dispatcher::dispatch(const SCSI::TaskId&, const SCSI::TaskType&, const SCSI::LunId&, const uint8*, const uint32&, SCSI::TaskData*&, SCSI::Adapter&) -- Summary: no matching function for call with derived class arguments Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bkramer at ciprico dot com CC: 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: powerpc-wrs-vxworks http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13979