This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
operator->* bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: operator->* bug
- From: Mike Harrold <mharrold at cas dot org>
- Date: Thu, 31 Aug 2000 09:40:17 -0400 (EDT)
The following error message is rather bogus. I assume it has to do with
name demangling of operator ->* but it's rather silly, IMHO.
bash-2.01$ cat rm.cc
class foo
{
private:
int __rm;
};
bash-2.01$ g++ -v -Wall -c rm.cc
Reading specs from /home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -Wall -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) rm.cc /tmp/ccJDQOyd.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../include/g++-3
/home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include
/home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/local/include
End of omitted list.
/home/mah21/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cc1plus /tmp/ccJDQOyd.ii -quiet -dumpbase rm.cc -Wall -version -o /tmp/cc4lmk4h.s
GNU C++ version 2.95.2 19991024 (release) (sparc-sun-solaris2.6) compiled by GNU C version 2.95.2 19991024 (release).
rm.cc:5: declaration of `operator ->*' as non-function
Regards,
/Mike