This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81910] New: [avr] ICE with "address" attribute on type
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 09:36:27 +0000
- Subject: [Bug target/81910] New: [avr] ICE with "address" attribute on type
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910
Bug ID: 81910
Summary: [avr] ICE with "address" attribute on type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
struct { char a; } __attribute((address(1)));
ICEs the compiler:
cc1: warning: 'address' attribute only applies to variables
x.c:1:8: internal compiler error: Segmentation fault
struct { char a; } __attribute((address(1)));
^
0xc32e2a lookup_attribute
../../../gcc.gnu.org/gcc-7-branch/gcc/tree.h:4194
0xc32e2a avr_handle_addr_attribute
../../../gcc.gnu.org/gcc-7-branch/gcc/config/avr/avr.c:9584
0x5a04a8 decl_attributes(tree_node**, tree_node*, int)
../../../gcc.gnu.org/gcc-7-branch/gcc/attribs.c:548
...