This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/57509] Segmentation fault when using __builtin_shuffle in templated class.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57509

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Marc Glisse <glisse at gcc dot gnu.org> ---
r200495 | glisse | 2013-06-27 23:29:22 +0200 (Thu, 27 Jun 2013) | 20 lines

2013-06-27  Marc Glisse  <marc.glisse@inria.fr>

        PR c++/57509

gcc/c-family/
        * c-common.h (c_build_vec_perm_expr): New complain argument.
        * c-common.c (c_build_vec_perm_expr): Likewise.
        Use save_expr also in C++.

gcc/cp/
        * typeck.c (cp_build_vec_perm_expr): New function.
        * cp-tree.h: Declare it.
        * parser.c (cp_parser_postfix_expression): Call it.
        * pt.c (tsubst_copy): Handle VEC_PERM_EXPR.
        (tsubst_copy_and_build): Likewise.

gcc/testsuite/
        * g++.dg/ext/pr57509.C: New file.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]