Bug 228521
Summary: | c++ code crashes | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tianlin Wang <tianlin.wang> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | tianlin.wang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | athlon | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-02-14 11:22:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tianlin Wang
2007-02-13 15:49:38 UTC
Simplified C testcase: struct S { int *s; }; void test (int x, struct S *y) { int i; for (i = 0; i < x; i++) { if (y) y->s[i] += 1; } } int main () { test (1, (void *) 0); return 0; } This seems to be a RTL strength reduction bug, present also on vanilla gcc-4_1-branch. -O2 -fno-strength-reduce cures this. Tracking upstream. |