This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56762] too aggressive optimization or missing warnings
- 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: Thu, 28 Mar 2013 12:15:30 +0000
- Subject: [Bug c++/56762] too aggressive optimization or missing warnings
- Auto-submitted: auto-generated
- References: <bug-56762-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56762
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2013-03-28 12:15:30 UTC ---
This line does not what you expect it would do (Search for "most vexing
parse"):
CLockGuard<CIntLock> sGuard(CIntLock());
It does *not* construct an CIntLock object nor does it declare an sGuard
object, instead it does declare a function and has no further effects.