This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55425] constexpr does not work in many situations (both built-in and user supplied literals)
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Nov 2012 20:52:13 +0000
- Subject: [Bug c++/55425] constexpr does not work in many situations (both built-in and user supplied literals)
- Auto-submitted: auto-generated
- References: <bug-55425-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55425
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> 2012-11-21 20:52:13 UTC ---
(In reply to comment #2)
> (In reply to comment #1)
> > No, the error says __m128 is not a literal type, which I assume is true.
> > Changing that would be an enhancement request.
>
> With G++ 4.8 __m128i is a literal type, so this example works.
PR 53094 shows that many other vector things don't work with constexpr though.