https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100517

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:010d4a5047166037b316ed22331f3d99742f1f1d

commit r12-721-g010d4a5047166037b316ed22331f3d99742f1f1d
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue May 11 09:53:20 2021 -0400

    c++: ICE casting class to vector [PR100517]

    My recent change to reject calling rvalue() with an argument of class type
    crashes on this testcase, where we use rvalue() on what we expect to be an
    argument of integer or vector type.  Fixed by checking first.

    gcc/cp/ChangeLog:

            PR c++/100517
            * typeck.c (build_reinterpret_cast_1): Check intype on
            cast to vector.

    gcc/testsuite/ChangeLog:

            PR c++/100517
            * g++.dg/ext/vector41.C: New test.

Reply via email to