[Bug c++/58063] default arguments evaluated twice per call

2018-04-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug c++/58063] default arguments evaluated twice per call

2015-08-18 Thread jason at gcc dot gnu.org
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=226973root=gccview=rev Log: PR c++/58063 * tree.c (bot_manip):

[Bug c++/58063] default arguments evaluated twice per call

2015-06-21 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added CC|

[Bug c++/58063] default arguments evaluated twice per call

2015-06-17 Thread jason at gcc dot gnu.org
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=224559root=gccview=rev Log: PR c++/58063 * tree.c (bot_manip):

[Bug c++/58063] default arguments evaluated twice per call

2015-06-16 Thread jason at gcc dot gnu.org
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=224533root=gccview=rev Log: PR c++/58063 * tree.c (bot_manip):

[Bug c++/58063] default arguments evaluated twice per call

2015-06-14 Thread plokinom at gmail dot com
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.

[Bug c++/58063] default arguments evaluated twice per call

2013-08-04 Thread fanael4 at gmail dot com
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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-04 Thread paolo.carlini at oracle dot com
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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 Daniel Krügler daniel.kruegler at googlemail dot com changed: What|Removed |Added CC|

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread paolo.carlini at oracle dot com
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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
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:

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- 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.

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread paolo.carlini at oracle dot com
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.

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- 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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread daniel.kruegler at googlemail dot com
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

[Bug c++/58063] default arguments evaluated twice per call

2013-08-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58063 --- 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.