https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
--- Comment #10 from Andrew Pinski ---
Created attachment 60356
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60356&action=edit
A Scalar testcase which shows this is a regression from GCC 4.9.x now
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
--- Comment #9 from Andrew Pinski ---
Created attachment 60355
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60355&action=edit
Another testcase
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Andrew Pinski changed:
What|Removed |Added
CC||xiaohuba2021 at 163 dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Marek Polacek changed:
What|Removed |Added
Assignee|mpolacek at gcc dot gnu.org|unassigned at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Andrew Pinski changed:
What|Removed |Added
CC||gnu4u at flonatel dot org
--- Comment #7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
--- Comment #6 from Andrew Pinski ---
Created attachment 57684
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57684&action=edit
Testcase from godbolt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
--- Comment #5 from Marek Polacek ---
Further poking revealed that the patch above mishandles
// PR c++/86769
// { dg-do run }
#define assert(X) do { if (!(X)) __builtin_abort(); } while(0)
int g;
struct X {
X() { g++; }
~X() { g--; }
o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Arthur O'Dwyer changed:
What|Removed |Added
CC||arthur.j.odwyer at gmail dot
com
--- C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Marek Polacek changed:
What|Removed |Added
CC||gcc-bugzilla at contacts dot
eelis
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
Jonathan Wakely changed:
What|Removed |Added
Keywords||wrong-code
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769
--- Comment #1 from Richard Smith ---
For easy reproduction: https://godbolt.org/g/dfZFxz
This does not appear to be a regression: this example appears to be miscompiled
by every version of GCC back to at least 4.1.
13 matches
Mail list logo