> SFS fails to compile with gcc 3.0, and it was tracked down to this
> example code that reproduces the error:
This is not a bug in the compiler, but in your code.
> a << 10;
Here, a temporary of class aiosout must be initialized with an
expression of type aios. This is defined in section 8.
>Submitter-Id: net
>Originator:Jaakko Niemi <[EMAIL PROTECTED]>
>Organization: The Debian project
>Confidential: no
>Synopsis: g++-3.0 copies constructors
>Severity: serious
>Priority: medium
>Category: c++
>Class: sw-bug
>
> "Jaakko" == Jaakko Niemi <[EMAIL PROTECTED]> writes:
Jaakko>
Jaakko> The compile time is not a problem here, but failure building is.
Jaakko>
Jaakko> You move aiosout (const aiosout &o) ... under public:, which
Jaakko> effectively hides the problem. Please take look at:
Jaakko>
Jaakko>
Laurent Bonnaud <[EMAIL PROTECTED]> writes:
> Hi,
>
> you write that "apparently", g++ 3.0 tries a longer conversion chain
> than 2.95. Indeed, the compiler message let us think so. But to
> verify this, I added traces into your testcase. The result is that
> both g++ versions use the same con
On Fri, Jul 13, 2001 at 10:05:29AM +0200, Laurent Bonnaud wrote:
>
> Hi,
>
> you write that "apparently", g++ 3.0 tries a longer conversion chain
> than 2.95. Indeed, the compiler message let us think so. But to
> verify this, I added traces into your testcase. The result is that
> both g++ ve
Hi,
you write that "apparently", g++ 3.0 tries a longer conversion chain
than 2.95. Indeed, the compiler message let us think so. But to
verify this, I added traces into your testcase. The result is that
both g++ versions use the same conversion chain (and indeed g++ 3.0
takes much longer to c
Package: g++-3.0
Version: N/A
Severity: normal
SFS fails to compile with gcc 3.0, and it was tracked down to this
example code that reproduces the error:
-
class aios {
friend class aiosout;
public:
aios ();
~aios ();
};
class aiosout {
aiosout (const aiosout &o);
aiosou
7 matches
Mail list logo