[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/64175] New: #pragma GCC diagnostic pop doesn't re-disable -Wnested-externs

2014-12-03 Thread plokinom at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: plokinom at gmail dot com $ cat foo.c #pragma GCC diagnostic warning -Wnested-externs #pragma GCC diagnostic pop static void bar(void) { extern int main(void); } int main(void) { return 0

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

2013-08-02 Thread plokinom at gmail dot com
++ 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