public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24243]  New: [4.0 regression] lookup fails to match to function call, const-sensitive
@ 2005-10-06 19:20 fang at csl dot cornell dot edu
  2005-10-06 19:22 ` [Bug c++/24243] " fang at csl dot cornell dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fang at csl dot cornell dot edu @ 2005-10-06 19:20 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-06-04 19:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 19:20 [Bug c++/24243] New: [4.0 regression] lookup fails to match to function call, const-sensitive fang at csl dot cornell dot edu
2005-10-06 19:22 ` [Bug c++/24243] " fang at csl dot cornell dot edu
2005-10-06 19:48 ` pinskia at gcc dot gnu dot org
2005-10-06 20:30 ` fang at csl dot cornell dot edu
2005-10-06 21:28 ` fang at csl dot cornell dot edu
2005-10-06 21:41 ` rguenth at gcc dot gnu dot org
2005-10-06 21:47 ` fang at csl dot cornell dot edu
2005-10-06 23:38 ` fang at csl dot cornell dot edu
2006-03-11 22:11 ` fang at csl dot cornell dot edu
2006-06-04 19:41 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).