This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13049] New: Does not warn on obious aliasing problem
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2003 10:00:22 -0000
- Subject: [Bug optimization/13049] New: Does not warn on obious aliasing problem
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code should warn as there is an aliasing problem in the code (derived from gcc in
SPEC, yes that old code):
struct tt
{
struct
{
short i;
short j;
}t;
};
void t(struct tt *i)
{
((int*)i)[0] = 0;
i->t.j = 2;
}
--
Summary: Does not warn on obious aliasing problem
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13049