This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Fwd: failure notice (fwd)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Fwd: failure notice (fwd)
- From: <jfesler at gigo dot com>
- Date: Wed, 19 Jan 2000 19:48:00 -0800 (PST)
Forwarded by someone who couldn't mail you directly.
Jason Fesler <jfesler@gigo.com> |".. and ten thousand noblemen squatted and
Good, Fast, Cheap - | strained, for the King's word, was law."
Pick any two. | - SCA Folklore
---------- Forwarded message ----------
From: Alex Meyer <alex@inktomi.com>
To: jfesler@gigo.com
Subject: Fwd: failure notice
Date: Wed, 19 Jan 2000 19:46:55 -0800 (PST)
Hope you can find the original message in this crap.
Thanks much.
------- start of forwarded message (RFC 934 encapsulation) -------
Content-Length: -481
Received: from sourceware.cygnus.com (sourceware.cygnus.com [205.180.83.71])
by mercury.inktomi.com (8.9.1a/8.9.1) with SMTP id TAA20859
for <alex@inktomi.com>; Wed, 19 Jan 2000 19:14:48 -0800 (PST)
Message-Id: <200001200314.TAA20859@mercury.inktomi.com>
Received: (qmail 24346 invoked for bounce); 20 Jan 2000 03:14:42 -0000
From: MAILER-DAEMON@sourceware.cygnus.com
To: alex@inktomi.com
Subject: failure notice
Date: 20 Jan 2000 03:14:42 -0000
Hi. This is the qmail-send program at sourceware.cygnus.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<gcc-bugs@gcc.gnu.org>:
Your mail server is listed in an RBL, so I will not accept mail from you.
You should contact your local mail administrators and get your mail
server fixed. For more information about my use of the RBLs, see
http://gcc.gnu.org/lists.html
The IP number that I'm denying mail from is 209.131.48.73
The RBL that you're on is ORBS RBL. See:
http://www.orbs.org/verify.cgi?address=209.131.48.73
for more information about this RBL and why you are on it.
- --- Below this line is a copy of the message.
Return-Path: <alex@inktomi.com>
Received: (qmail 24325 invoked from network); 20 Jan 2000 03:14:40 -0000
Received: from mercury.inktomi.com (209.131.48.73)
by sourceware.cygnus.com with SMTP; 20 Jan 2000 03:14:40 -0000
Received: from searchdev (searchdev.inktomi.com [209.131.48.78])
by mercury.inktomi.com (8.9.1a/8.9.1) with ESMTP id TAA20794
for <gcc-bugs@gcc.gnu.org>; Wed, 19 Jan 2000 19:14:13 -0800 (PST)
Received: (from alex@localhost)
by searchdev (8.8.8+Sun/) id TAA16381;
Wed, 19 Jan 2000 19:14:11 -0800 (PST)
Date: Wed, 19 Jan 2000 19:14:11 -0800 (PST)
Message-Id: <200001200314.TAA16381@searchdev>
From: Alex Meyer <alex@inktomi.com>
To: gcc-bugs@gcc.gnu.org
Subject: g++ problem with template and conversion operator
Using gcc 2.95.2, I'm running into a problem where templatizing a
class causes its conversion operator not to be found. The following
code seems to be correct, and compiles when un-templatized. It
compiles with Sun Workshop 5.0 and, curiosly, with gcc 2.7.2. I'm
using SPARC Solaris 2.5.1.
Here's the .ii file:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# 1 "temp.cpp"
template<class T>
struct base {
operator bool() { return 0; }
};
typedef base<char> foo;
int broken(foo *p) {
if (*p)
return -1;
return 0;
}
int main() {
foo p;
return broken(&p);
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
And here are the command line and gcc standard output:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
% /home/alex/local/bin/g++ -v --save-temps temp.cpp
Reading specs from /home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/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 -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) temp.cpp temp.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3
/usr/local/include
/home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../sparc-sun-solaris2.5.1/include
/home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/home/alex/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/cc1plus temp.ii -quiet -dumpbase temp.cc -version -o temp.s
GNU C++ version 2.95.2 19991024 (release) (sparc-sun-solaris2.5.1) compiled by GNU C version 2.95.2 19991024 (release).
temp.cpp: In function `int broken(foo *)':
temp.cpp:9: `struct base<char>' used where a `bool' was expected
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks.
[ Alex Meyer voice-650-653-2840 ] [ Inktomi Corporation ]
[ alex@inktomi.com fax-650-653-5485 ] [ 4100 East Third Avenue ]
[ http://personal.inktomi.com/~alex/ ] [ Foster City, CA 94404 ]
------- end -------
--
[ Alex Meyer voice-650-653-2840 ] [ Inktomi Corporation ]
[ alex@inktomi.com fax-650-653-5485 ] [ 4100 East Third Avenue ]
[ http://personal.inktomi.com/~alex/ ] [ Foster City, CA 94404 ]