This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]