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 middle-end/80163] ICE on hopefully valid code


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 31 06:32:46 2017
New Revision: 246607

URL: https://gcc.gnu.org/viewcvs?rev=246607&root=gcc&view=rev
Log:
        PR middle-end/80163
        * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
        conversions to integer types wider than word and pointer.

        * gcc.dg/pr80163.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr80163.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/varasm.c

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