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/58346] ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6)


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

--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jan 23 19:18:49 2014
New Revision: 207004

URL: http://gcc.gnu.org/viewcvs?rev=207004&root=gcc&view=rev
Log:
    PR c/58346
c-family/
    * c-common.c (pointer_to_zero_sized_aggr_p): New function.
    * c-common.h: Declare it.
cp/
    * typeck.c (pointer_diff): Give an error on arithmetic on pointer to
    an empty aggregate.
c/
    * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
    an empty aggregate.
testsuite/
    * c-c++-common/pr58346-1.c: New test.
    * c-c++-common/pr58346-2.c: New test.
    * c-c++-common/pr58346-3.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/pr58346-1.c
    trunk/gcc/testsuite/c-c++-common/pr58346-2.c
    trunk/gcc/testsuite/c-c++-common/pr58346-3.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


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