[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#216280: marked as done (g++-3.3: lvalue evaluated twice for ?: operator)



Your message dated 20 Oct 2003 08:50:40 +0200
with message-id <87y8vgtnb3.fsf@student.uni-tuebingen.de>
and subject line Bug#216280: g++-3.3: lvalue evaluated twice for ?: operator
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Oct 2003 17:36:54 +0000
>From jason@rincewind.neep.wisc.edu Fri Oct 17 12:35:57 2003
Return-path: <jason@rincewind.neep.wisc.edu>
Received: from rincewind.neep.wisc.edu [128.104.187.108] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AAYW5-0001ci-00; Fri, 17 Oct 2003 12:35:57 -0500
Received: from jason by rincewind.neep.wisc.edu with local (Exim 4.22)
	id 1AAYW4-0002wH-NK; Fri, 17 Oct 2003 12:35:56 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jason Kraftcheck <kraftche@cae.wisc.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: g++-3.3: lvalue evaluated twice for ?: operator
X-Mailer: reportbug 2.34
Date: Fri, 17 Oct 2003 12:35:56 -0500
Message-Id: <[🔎] E1AAYW4-0002wH-NK@rincewind.neep.wisc.edu>
Sender: Jason Kraftcheck <jason@rincewind.neep.wisc.edu>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_10_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_17 (1.174.2.15-2003-03-30-exp)

Package: g++-3.3
Version: 1:3.3.2-0pre4
Severity: normal


The output of the following code, when compiled with g++-3.3 is '2'.  It 
should be '1'.

  #include <iostream>

  struct foo {
    foo()        : v(0), c(0) {}
    int& value() { c++; return v; }
    int count()  { return c; }
    int v, c;
  };


  int main(int argc, char* argv[])
  {
    foo f;
    f.value() = (argc - 1) ? 0 : 1;
    std::cout << f.count() << std::endl;
    return 0;
  }

f.value() is evaluated twice for the ?: operator.


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rincewind 2.4.21-5-686-smp #1 SMP Sun Aug 24 16:31:04 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages g++-3.3 depends on:
ii  gcc-3.3                    1:3.3.2-0pre4 The GNU C compiler
ii  gcc-3.3-base               1:3.3.2-0pre4 The GNU Compiler Collection (base 
ii  libc6                      2.3.2-7       GNU C Library: Shared libraries an
ii  libstdc++5-3.3-dev         1:3.3.2-0pre4 The GNU Standard C++ Library v3 (d

-- no debconf information


---------------------------------------
Received: (at 216280-done) by bugs.debian.org; 20 Oct 2003 09:27:23 +0000
>From falk.hueffner@student.uni-tuebingen.de Mon Oct 20 04:27:15 2003
Return-path: <falk.hueffner@student.uni-tuebingen.de>
Received: from mx3.informatik.uni-tuebingen.de [134.2.12.26] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ABTsK-0003o7-00; Mon, 20 Oct 2003 01:50:44 -0500
Received: from juist (semeai [134.2.15.66])
	by mx3.informatik.uni-tuebingen.de (Postfix) with ESMTP id D6AF9148
	for <216280-done@bugs.debian.org>; Mon, 20 Oct 2003 08:50:42 +0200 (DFT)
Received: from falk by juist with local (Exim 3.36 #1 (Debian))
	id 1ABTsH-0007vL-00
	for <216280-done@bugs.debian.org>; Mon, 20 Oct 2003 08:50:41 +0200
X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ
 wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2<T^
To: 216280-done@bugs.debian.org
Subject: Re: Bug#216280: g++-3.3: lvalue evaluated twice for ?: operator
References: <[🔎] E1AAYW4-0002wH-NK@rincewind.neep.wisc.edu>
	<[🔎] 877k30vqlu.fsf@student.uni-tuebingen.de>
	<[🔎] 3F9351AB.6010009@cae.wisc.edu>
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Date: 20 Oct 2003 08:50:40 +0200
In-Reply-To: <[🔎] 3F9351AB.6010009@cae.wisc.edu>
Message-ID: <87y8vgtnb3.fsf@student.uni-tuebingen.de>
Lines: 4
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cabbage)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 216280-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	version=2.53-bugs.debian.org_2003_10_18
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_18 (1.174.2.15-2003-03-30-exp)

Cosing since submitter says it's fixed.

-- 
	Falk



Reply to: