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++/54059] g++ silently omits code that creates a std::chrono::millisecond temporary


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;


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