diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-06 08:46:45 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-06 08:46:45 +0000 |
| commit | e0559d69f5cf440c6b68bb33f4f9982dae4fe395 (patch) | |
| tree | ea3cde61de4ddf98d55d21d6887d89e8f61719f0 /libjava/classpath/java/sql/SQLData.java | |
| parent | e20f082bc41afd9d960373ecaed9691586107f5e (diff) | |
| download | ppe42-gcc-e0559d69f5cf440c6b68bb33f4f9982dae4fe395.tar.gz ppe42-gcc-e0559d69f5cf440c6b68bb33f4f9982dae4fe395.zip | |
PR middle-end/41935
* c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
or non-constant index, allow index one past the last element and
allow exceeding array bound in arrays that might be used as flexible
array members.
* gcc.dg/pr41935.c: New test.
* c-c++-common/pr41935.c: New test.
* c-c++-common/builtin-offsetof.c (f0): Allow index one past the last
element.
* gcc.c-torture/execute/pr41935.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153962 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/sql/SQLData.java')
0 files changed, 0 insertions, 0 deletions

