This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50060] intrinsics not folded by the middle-end
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Aug 2011 21:17:05 +0000
- Subject: [Bug middle-end/50060] intrinsics not folded by the middle-end
- Auto-submitted: auto-generated
- References: <bug-50060-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-12 21:17:05 UTC ---
(In reply to comment #3)
> (It seems more a problem with my C++ test snippets in Comments #1 / #2: I
> suppose any definition of such functions isn't viable for constexpr, because
> the body has to assign the pointed integer additionally to returning a value...
> If Jason could confirm it would be great)
Correct, the assignment makes it non-constant.