https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94346
Bug ID: 94346
Summary: [9/10 Regression] ICE due to handle_copy_attribute
since r9-3982
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
#define ATTR(...) __attribute__ ((__VA_ARGS__))
typedef struct ATTR (packed) A { ATTR (packed) unsigned bf: 1; } A;
int bar (void);
struct C
{
ATTR (copy ((bar (), ((struct A *)(0))[0]))) int m;
};
ICEs since r9-3982-g79a2c4281c7dcaa6a138d24fd037c62453a12bde (before that it
has been accepted with a warning).