[Bug c++/82246] New: Wrong optimisation of an offset double* attribute class allocated in stack

2017-09-19 Thread erwan.adam at cea dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: erwan.adam at cea dot fr Target Milestone: --- Created attachment 42204 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42204&action=edit Use case for wrong optim

[Bug c++/82246] Wrong optimisation of an offset double* attribute class allocated in stack

2017-09-19 Thread erwan.adam at cea dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82246 --- Comment #2 from erwan.adam at cea dot fr --- (In reply to Andrew Pinski from comment #1) > Taking the address of array [-1] is undefined according to the c standard. Hi Andrew, Thanks for you answer. Strictly speaking, I don'

[Bug c++/82246] Wrong optimisation of an offset double* attribute class allocated in stack

2017-09-19 Thread erwan.adam at cea dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82246 --- Comment #4 from erwan.adam at cea dot fr --- Ok