This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53025] [C++11] noexcept operator depends on copy-elision
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Apr 2012 07:45:57 +0000
- Subject: [Bug c++/53025] [C++11] noexcept operator depends on copy-elision
- Auto-submitted: auto-generated
- References: <bug-53025-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53025
--- Comment #2 from Marc Glisse <marc.glisse at normalesup dot org> 2012-04-21 07:45:57 UTC ---
Created attachment 27210
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27210
patch
Bootstrapped and regression tested.
Not posting it to gcc-patches yet, for several reasons:
- I have other patches (at least 3) waiting for a review,
- I am not 100% certain that this can't cause legitimate elisions to be missed
(say if something is first instantiated inside the noexcept),
- people may not like using globals that way,
- I might prefer the old behavior...
but if anyone wants to submit it, feel free.