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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:3900e944b0ac9db77380c5bb8635977dfd3b0691

commit r15-56-g3900e944b0ac9db77380c5bb8635977dfd3b0691
Author: Patrick Palka <ppa...@redhat.com>
Date:   Mon Apr 29 21:14:18 2024 -0400

    c++: ICE with templated sizeof(E1) / sizeof(E2) [PR114888]

    In the sizeof / sizeof operator expression handling we're missing
    a dependence check for the second operand.

            PR c++/114888

    gcc/cp/ChangeLog:

            * typeck.cc (cp_build_binary_op) <case *_DIV_*>: Add missing
            dependence check for the second sizeof operand.

    gcc/testsuite/ChangeLog:

            * g++.dg/template/sizeof19.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to