[Bug c++/38562] [4.3/4.4 regression] mysql miscompiles and causes testsuite failures
------- 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
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: