https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82801
gcc-bugs at marehr dot dialup.fu-berlin.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc-bugs at marehr dot
dialup.fu-b
| |erlin.de
--- Comment #10 from gcc-bugs at marehr dot dialup.fu-berlin.de ---
Hi,
I did built gcc from git sources
[https://github.com/gcc-mirror/gcc/commit/156d24841, gcc version 8.0.0 20171215
(experimental) (GCC)] today and ran into the same? error.
I could extract this minimal code snippet from our code base that does not work
with g++-8, but with gcc version 7.2.1 20171128 (GCC).
```
class a {};
class b {};
class c : b, a {
__attribute__((always_inline)) c operator=(c);
};
```
~~~~~~~
Error log:
internal compiler error: Segmentation fault
__attribute__((always_inline)) c operator=(c);
^
0xc0092f crash_signal
/home/marehr/Packages/gcc-git/src/gcc/gcc/toplev.c:325
0x828832 cxx11_attribute_p(tree_node const*)
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:802
0x828832 get_attribute_name(tree_node const*)
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:817
0x828832 private_lookup_attribute(char const*, unsigned long, tree_node*)
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:1778
0x828953 lookup_attribute
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.h:172
0x828953 diag_attr_exclusions
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:410
0x828ae9 diag_attr_exclusions
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:378
0x829f82 decl_attributes(tree_node**, tree_node*, int, tree_node*)
/home/marehr/Packages/gcc-git/src/gcc/gcc/attribs.c:702
0x7422bc cplus_decl_attributes(tree_node**, tree_node*, int)
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/decl2.c:1508
0x72fd62 grokfndecl
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/decl.c:8844
0x73dc6d grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/decl.c:11987
0x745342 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/decl2.c:829
0x79e34e cp_parser_member_declaration
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:23842
0x79f16a cp_parser_member_specification_opt
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:23316
0x79f16a cp_parser_class_specifier_1
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:22458
0x7a0bf9 cp_parser_class_specifier
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:22710
0x7a0bf9 cp_parser_type_specifier
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:16718
0x7acad5 cp_parser_decl_specifier_seq
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:13579
0x7b1c90 cp_parser_simple_declaration
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:12888
0x7b2bf8 cp_parser_block_declaration
/home/marehr/Packages/gcc-git/src/gcc/gcc/cp/parser.c:12835