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

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Peter Bergner
<berg...@gcc.gnu.org>:

https://gcc.gnu.org/g:df8567535a1f3eaa20b700be62374b2fb4f09204

commit r11-10201-gdf8567535a1f3eaa20b700be62374b2fb4f09204
Author: Peter Bergner <berg...@linux.ibm.com>
Date:   Fri Jun 17 23:43:23 2022 -0500

    c: Handle initializations of opaque types [PR106016]

    The initial commit that added opaque types thought that there couldn't
    be any valid initializations for variables of these types, but the test
    case in the bug report shows that isn't true.  The solution is to handle
    OPAQUE_TYPE initializations like the other scalar types.

    2022-06-17  Peter Bergner  <berg...@linux.ibm.com>

    gcc/
            PR c/106016
            * expr.c (count_type_elements): Handle OPAQUE_TYPE.

    gcc/testsuite/
            PR c/106016
            * gcc.target/powerpc/pr106016.c: New test.

    (cherry picked from commit 975658b782f36dcf6eb190966d5b705977bfd5eb)

Reply via email to