public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58063] New: default arguments evaluated twice per call
@ 2013-08-02 20:38 plokinom at gmail dot com
  2013-08-03 20:40 ` [Bug c++/58063] " paolo.carlini at oracle dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: plokinom at gmail dot com @ 2013-08-02 20:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

            Bug ID: 58063
           Summary: default arguments evaluated twice per call
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: plokinom at gmail dot com

% cat try.cc
#include <iostream>

void f(bool x = !(std::cout << "hi!\n")) {
    std::cout << x << '\n';
}

int main() {
    f();
}

% g++ try.cc
% ./a.out 
hi!
hi!
0

My question: Why is the default argument evaluated twice for each call to f()?

Is this allowed by the standard or a bug in g++?


% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/mauke/usr/local/libexec/gcc/i686-pc-linux-gnu/4.8.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.8.1/configure --prefix=/home/mauke/usr/local
--with-arch=native --with-tune=native --enable-__cxa_atexit
--enable-languages=c,c++,go --disable-nls
Thread model: posix
gcc version 4.8.1 (GCC)


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
@ 2013-08-03 20:40 ` paolo.carlini at oracle dot com
  2013-08-03 20:48 ` daniel.kruegler at googlemail dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-03 20:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The standard streams are indeed special, being constructed once and never
destroyed, see libstdc++-v3/src/c++98/ios_init.cc. I suppose a minimal
reproducer could involve a file scope static of some sort...


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
  2013-08-03 20:40 ` [Bug c++/58063] " paolo.carlini at oracle dot com
@ 2013-08-03 20:48 ` daniel.kruegler at googlemail dot com
  2013-08-03 20:58 ` paolo.carlini at oracle dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-08-03 20:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Paolo Carlini from comment #2)
> I suppose a minimal reproducer could involve a file scope static of some sort...

I'm a bit confused by your reply, Paolo: Isn't my_cout also a "file scope
static"? (Even, if I declare it to have static linkage, it still behaves
differently compared to std::cout)
>From gcc-bugs-return-427291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 03 20:50:21 2013
Return-Path: <gcc-bugs-return-427291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20305 invoked by alias); 3 Aug 2013 20:50:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20222 invoked by uid 48); 3 Aug 2013 20:50:18 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58063] default arguments evaluated twice per call
Date: Sat, 03 Aug 2013 20:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58063-4-qNUSnIWMHP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00215.txt.bz2
Content-length: 256

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX063

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Sorry, I didn't study it in sufficient detail. Anyway, no mysteries, this is
free software: libstdc++-v3/src/c++98/ios_init.cc etc.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
  2013-08-03 20:40 ` [Bug c++/58063] " paolo.carlini at oracle dot com
  2013-08-03 20:48 ` daniel.kruegler at googlemail dot com
@ 2013-08-03 20:58 ` paolo.carlini at oracle dot com
  2013-08-03 21:23 ` daniel.kruegler at googlemail dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-03 20:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Ah, in case isn't obvious already: it only happens when the "I/O expression"
has the ! operator in front.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (2 preceding siblings ...)
  2013-08-03 20:58 ` paolo.carlini at oracle dot com
@ 2013-08-03 21:23 ` daniel.kruegler at googlemail dot com
  2013-08-03 21:34 ` daniel.kruegler at googlemail dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-08-03 21:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #6 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Paolo Carlini from comment #5)
> Ah, in case isn't obvious already: it only happens when the "I/O expression"
> has the ! operator in front.

I suspected that and ensured that I added a similar operator! to my ostream
model type, but this hadn't any impact on the outcome for that type. Further, I
don't understand how it is related to ostream initialization, because the issue
also occurs when we invert the order of the function calls:

int main() {
 f2();
 std::cout << "------------------\n";
 f();
}

gives me:

<quote>
hi!
0
------------------
hi!
hi!
0
</quote>

Are you sure that this is not due to improper code generation?
>From gcc-bugs-return-427294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 03 21:31:00 2013
Return-Path: <gcc-bugs-return-427294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13827 invoked by alias); 3 Aug 2013 21:31:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13732 invoked by uid 48); 3 Aug 2013 21:30:58 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58063] default arguments evaluated twice per call
Date: Sat, 03 Aug 2013 21:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58063-4-6aM430M4Rm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00218.txt.bz2
Content-length: 361

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX063

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I'm not at all sure! But it happens with -O0 too, right?, thus at this point
the front-end seems more likely than the back-end, I would not change the
Component from c++ to something else. In any case we badly need a reduced
testcase ;)


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (3 preceding siblings ...)
  2013-08-03 21:23 ` daniel.kruegler at googlemail dot com
@ 2013-08-03 21:34 ` daniel.kruegler at googlemail dot com
  2013-08-04 12:11 ` fanael4 at gmail dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-08-03 21:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #8 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Paolo Carlini from comment #7)
> But it happens with -O0 too, right?

Yes.

> In any case we badly need a reduced testcase ;)

I agree. Unfortunately I'm on vacations from tomorrow on (1 week), so I cannot
look into it until next week.
>From gcc-bugs-return-427296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 03 21:37:11 2013
Return-Path: <gcc-bugs-return-427296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23362 invoked by alias); 3 Aug 2013 21:37:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23285 invoked by uid 48); 3 Aug 2013 21:37:09 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58063] default arguments evaluated twice per call
Date: Sat, 03 Aug 2013 21:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58063-4-oFVqSlC4Kl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58063-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00220.txt.bz2
Content-length: 284

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX063

--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Your help is always very appreciated, Daniel. Here we have plenty of work to do
anyway, if when you will back the bug will be unchanged, consider helping more.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (4 preceding siblings ...)
  2013-08-03 21:34 ` daniel.kruegler at googlemail dot com
@ 2013-08-04 12:11 ` fanael4 at gmail dot com
  2013-08-04 12:22 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2013-08-04 12:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

Fanael <fanael4 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fanael4 at gmail dot com

--- Comment #10 from Fanael <fanael4 at gmail dot com> ---
My attempt at reducing:

struct basic_ios
{
  virtual ~basic_ios() {}
  bool operator!() const { return false; }
};

struct ostream : virtual basic_ios
{
  ostream() {}
  ~ostream() {}
private:
  ostream(const ostream&);
  ostream& operator=(const ostream&);
};

ostream& operator<<(ostream& os, const char* s) {
  __builtin_printf("%s", s);
  return os;
}

ostream cout;

void f(bool x = !(cout << "hi!\n")) {
  __builtin_printf("%d\n", static_cast<int>(x));
}

int main() {
  f();
}

Seems like virtual inheritance is the culprit.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (5 preceding siblings ...)
  2013-08-04 12:11 ` fanael4 at gmail dot com
@ 2013-08-04 12:22 ` paolo.carlini at oracle dot com
  2015-06-14 18:02 ` plokinom at gmail dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-04 12:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-04
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks!


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (6 preceding siblings ...)
  2013-08-04 12:22 ` paolo.carlini at oracle dot com
@ 2015-06-14 18:02 ` plokinom at gmail dot com
  2015-06-16 19:29 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: plokinom at gmail dot com @ 2015-06-14 18:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #12 from plokinom at gmail dot com ---
I can confirm this still happens with g++ 5.1.0.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (7 preceding siblings ...)
  2015-06-14 18:02 ` plokinom at gmail dot com
@ 2015-06-16 19:29 ` jason at gcc dot gnu.org
  2015-06-17 14:33 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-16 19:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun 16 19:29:09 2015
New Revision: 224533

URL: https://gcc.gnu.org/viewcvs?rev=224533&root=gcc&view=rev
Log:
        PR c++/58063
        * tree.c (bot_manip): Remap SAVE_EXPR.

Added:
    trunk/gcc/testsuite/g++.dg/overload/defarg10.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (8 preceding siblings ...)
  2015-06-16 19:29 ` jason at gcc dot gnu.org
@ 2015-06-17 14:33 ` jason at gcc dot gnu.org
  2015-06-21  9:06 ` ville.voutilainen at gmail dot com
  2015-08-18 14:44 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-17 14:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jun 17 14:33:17 2015
New Revision: 224559

URL: https://gcc.gnu.org/viewcvs?rev=224559&root=gcc&view=rev
Log:
        PR c++/58063
        * tree.c (bot_manip): Remap SAVE_EXPR.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/overload/defarg10.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/tree.c


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (9 preceding siblings ...)
  2015-06-17 14:33 ` jason at gcc dot gnu.org
@ 2015-06-21  9:06 ` ville.voutilainen at gmail dot com
  2015-08-18 14:44 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-06-21  9:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ville.voutilainen at gmail dot com

--- Comment #15 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
*** Bug 61856 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/58063] default arguments evaluated twice per call
  2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
                   ` (10 preceding siblings ...)
  2015-06-21  9:06 ` ville.voutilainen at gmail dot com
@ 2015-08-18 14:44 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-18 14:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063

--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Aug 18 14:43:38 2015
New Revision: 226973

URL: https://gcc.gnu.org/viewcvs?rev=226973&root=gcc&view=rev
Log:
        PR c++/58063
        * tree.c (bot_manip): Remap SAVE_EXPR.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/overload/defarg10.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/tree.c


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-18 14:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-02 20:38 [Bug c++/58063] New: default arguments evaluated twice per call plokinom at gmail dot com
2013-08-03 20:40 ` [Bug c++/58063] " paolo.carlini at oracle dot com
2013-08-03 20:48 ` daniel.kruegler at googlemail dot com
2013-08-03 20:58 ` paolo.carlini at oracle dot com
2013-08-03 21:23 ` daniel.kruegler at googlemail dot com
2013-08-03 21:34 ` daniel.kruegler at googlemail dot com
2013-08-04 12:11 ` fanael4 at gmail dot com
2013-08-04 12:22 ` paolo.carlini at oracle dot com
2015-06-14 18:02 ` plokinom at gmail dot com
2015-06-16 19:29 ` jason at gcc dot gnu.org
2015-06-17 14:33 ` jason at gcc dot gnu.org
2015-06-21  9:06 ` ville.voutilainen at gmail dot com
2015-08-18 14:44 ` jason at gcc dot gnu.org

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).