This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24243] New: [4.0 regression] lookup fails to match to function call, const-sensitive
- From: "fang at csl dot cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2005 19:20:34 -0000
- Subject: [Bug c++/24243] New: [4.0 regression] lookup fails to match to function call, const-sensitive
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
command: g++-4 -v -save-temps -c lookup-bug.cc
keywords: rejects-valid
expecting: (success)
program output:
Using built-in specs.
Target: powerpc-apple-darwin7
Configured with: ../configure --prefix=/sw --prefix=/sw/lib/gcc4
--enable-languages=c,c++,f95,objc,java --infodir=/share/info --with-gmp=/sw
--with-included-gettext --host=powerpc-apple-darwin7
--with-as=/sw/lib/odcctools/bin/as --with-ld=/sw/lib/odcctools/bin/ld
Thread model: posix
gcc version 4.0.2
/sw/lib/gcc4/libexec/gcc/powerpc-apple-darwin7/4.0.2/cc1plus -E -quiet -v
-D__DYNAMIC__ -D__APPLE_CC__=1 lookup-bug.cc -fPIC -fpch-preprocess -o
lookup-bug.ii
ignoring nonexistent directory
"/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.0.2/../../../../powerpc-apple-darwin7/include"
#include "..." search starts here:
#include <...> search starts here:
/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.0.2/../../../../include/c++/4.0.2
/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.0.2/../../../../include/c++/4.0.2/powerpc-apple-darwin7
/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.0.2/../../../../include/c++/4.0.2/backward
/usr/local/include
/sw/lib/gcc4/include
/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.0.2/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
/sw/lib/gcc4/libexec/gcc/powerpc-apple-darwin7/4.0.2/cc1plus -fpreprocessed
lookup-bug.ii -fPIC -quiet -dumpbase lookup-bug.cc -auxbase lookup-bug -version
-o lookup-bug.s
GNU C++ version 4.0.2 (powerpc-apple-darwin7)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build
1640).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
lookup-bug.cc: In member function 'std::ostream&
foo::name_space::dump(std::ostream&) const':
lookup-bug.cc:249: error: no matching function for call to
'mem_fun(std::ostream& (foo::instance_collection_base::*)(std::ostream&)const,
const util::memory::never_ptr<const foo::instance_collection_base>&)'
known to work: gcc-4.0.1 (built likewise)
remarks:
Note that this is not std::mem_fun, but rather, a custom extension for
pointer-classes, defined in namespace util.
In the attached .ii, changing the static member declaration:
static const never_ptr<const instance_collection_base> null;
to
static const never_ptr<instance_collection_base> null;
is sufficient to compile successfully.
--
Summary: [4.0 regression] lookup fails to match to function call,
const-sensitive
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fang at csl dot cornell dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24243