This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54059] g++ silently omits code that creates a std::chrono::millisecond temporary
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 23:14:09 +0000
- Subject: [Bug c++/54059] g++ silently omits code that creates a std::chrono::millisecond temporary
- Auto-submitted: auto-generated
- References: <bug-54059-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54059
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-20 23:14:09 UTC ---
This is http://en.wikipedia.org/wiki/Most_vexing_parse
The declaration f2 declares a function, it is not a variables definition.
To convince yourself, try taking its address:
foo* p = &f2;