This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58063] default arguments evaluated twice per call
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Aug 2013 20:48:01 +0000
- Subject: [Bug c++/58063] default arguments evaluated twice per call
- Auto-submitted: auto-generated
- References: <bug-58063-4 at http dot gcc dot gnu dot org/bugzilla/>
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)