public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8100: a valid operator definition is rejected.
@ 2002-09-30 14:46 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-09-30 14:46 UTC (permalink / raw)
To: cdevienne, gcc-bugs, gcc-prs, nobody
Synopsis: a valid operator definition is rejected.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Mon Sep 30 14:46:56 2002
State-Changed-Why:
Upon submitter's request.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8100
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8100: a valid operator definition is rejected.
@ 2002-09-30 14:06 Christophe de Vienne
0 siblings, 0 replies; 3+ messages in thread
From: Christophe de Vienne @ 2002-09-30 14:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8100; it has been noted by GNATS.
From: Christophe de Vienne <cdevienne@alphacent.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org, cdevienne@alphacent.com
Cc:
Subject: Re: c++/8100: a valid operator definition is rejected.
Date: Mon, 30 Sep 2002 23:09:48 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8100
Hi,
I'm the repoter of this (actualy not) bug.
After trying all most stupid things possible, it appeared that a
#include <ostream>
was missing (I couldn't imagine such a simple thing in a code from Pavel Krauz
but still).
Sorry to have created this useless bug report.
Cheers,
Christophe de Vienne
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/8100: a valid operator definition is rejected.
@ 2002-09-30 11:06 cdevienne
0 siblings, 0 replies; 3+ messages in thread
From: cdevienne @ 2002-09-30 11:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 8100
>Category: c++
>Synopsis: a valid operator definition is rejected.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Sep 30 11:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Christophe de Vienne
>Release: G++ 3.2
>Organization:
>Environment:
System: Slackware Current. glibc 2.2.5.
kernel: 2.4.19.
Arch: Bi-Athlon 2000+
>Description:
When tring to compile the given processed file, I get the following errors.
The most strange to me is that if I isolate the definition of QpException and the ostream&operator<<(ostream&o,const QpException &) in a single file, everything is fine. I guess there is a side effect but I couldn't find where does it comes from.
It works fine with g++ 2.95.3
In file included from qpthr/qp.h:55,
from qp.cc:9:
qpthr/qp_except.h: In function `std::ostream& qpthr::operator<<(std::ostream&,
const qpthr::QpException&)':
qpthr/qp_except.h:59: invalid conversion from `const char*' to `int'
qpthr/qp_except.h:59: initializing argument 1 of `
qpthr::QpException::QpException(int, const char*)'
qpthr/qp_except.h:59: cannot allocate an object of type `const
qpthr::QpException'
qpthr/qp_except.h:59: because the following virtual functions are abstract:
qpthr/qp_except.h:55: virtual const char* qpthr::QpException::ErrType() const
qpthr/qp_except.h:59: invalid conversion from `const char*' to `int'
qpthr/qp_except.h:59: initializing argument 1 of `
qpthr::QpException::QpException(int, const char*)'
qpthr/qp_except.h:59: cannot allocate an object of type `const
qpthr::QpException'
qpthr/qp_except.h:59: since type `const qpthr::QpException' has abstract
virtual functions
qpthr/qp_except.h:59: cannot allocate an object of type `const
qpthr::QpException'
qpthr/qp_except.h:59: since type `const qpthr::QpException' has abstract
virtual functions
qpthr/qp_except.h:59: invalid conversion from `const char*' to `int'
qpthr/qp_except.h:59: initializing argument 1 of `
qpthr::QpException::QpException(int, const char*)'
qpthr/qp_except.h:59: cannot allocate an object of type `const
qpthr::QpException'
qpthr/qp_except.h:59: since type `const qpthr::QpException' has abstract
virtual functions
qpthr/qp_except.h:59: invalid conversion from `const char*' to `int'
qpthr/qp_except.h:59: initializing argument 1 of `
qpthr::QpException::QpException(int, const char*)'
qpthr/qp_except.h:59: cannot allocate an object of type `const
qpthr::QpException'
qpthr/qp_except.h:59: since type `const qpthr::QpException' has abstract
virtual functions
>How-To-Repeat:
g++ -fPIC -Wall -O2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_SVID_SOURCE -DARCH_TAS -DLINUX -I. -c -o qp.o qp.i
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-30 21:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 14:46 c++/8100: a valid operator definition is rejected paolo
-- strict thread matches above, loose matches on Subject: below --
2002-09-30 14:06 Christophe de Vienne
2002-09-30 11:06 cdevienne
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).