[Bug c++/32281] New: A problem of gcc4.1.0(O3 optimize)

2007-06-10 Thread stillzhang at tencent dot com
-- Summary: A problem of gcc4.1.0(O3 optimize) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: stillzhang at tencent dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32281

[Bug c++/32281] A problem of gcc4.1.0(O3 optimize)

2007-06-10 Thread stillzhang at tencent dot com
--- Comment #2 from stillzhang at tencent dot com 2007-06-11 06:07 --- Thank you. But if i compiled it without -O3, it work fine. If I compiled it under gcc3.3 with -O3, it also work fine. The same program with different optimize has different, so i think it should not be like this

[Bug c++/32281] A problem of gcc4.1.0(O3 optimize)

2007-06-11 Thread stillzhang at tencent dot com
--- Comment #3 from stillzhang at tencent dot com 2007-06-11 07:11 --- I think if "&packet" should be changed, it should change before the function ¡°stmt->set_params¡±. And in fact it is changed after "stmt->set_params¡±, so I think it's a logi