[Bug c++/53025] [C++11] noexcept operator depends on copy-elision

marc.glisse at normalesup dot org gcc-bugzilla@gcc.gnu.org
Sat Apr 21 07:47:00 GMT 2012


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.



More information about the Gcc-bugs mailing list