This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38562] [4.3/4.4 regression] mysql miscompiles and causes testsuite failures
- 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: 22 Dec 2008 01:10:03 -0000
- Subject: [Bug c++/38562] [4.3/4.4 regression] mysql miscompiles and causes testsuite failures
- References: <bug-38562-16064@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from pinskia at gcc dot gnu dot org 2008-12-22 01:10 -------
I do get a warning from the trunk though:
log_event.cc: In member function 'virtual bool
Query_log_event::write(IO_CACHE*)':
log_event.cc:1124: warning: dereferencing pointer 'start.519' does break
strict-aliasing rules
log_event.cc:1217: note: initialized from here
Which is exactly what I mentioned except it is a different place I was thinking
of:
write_str_with_code_and_len((char **)(&start),
catalog, catalog_len, 6);
Yes this is now becomes an obvious aliasing issue as you are a "unsigned char
*" as a "char *" which violates C/C++ aliasing rules.
Please report this bug to mysql.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562