https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90750
Bug ID: 90750 Summary: [9/10 Regression] ICE in cp_default_conversion, at cp/typeck.c:2162 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20190210 and 20190217 : $ cat z1.cc template <typename> struct S; template <typename a> struct T { using A = S<a>; using A::b; char* __attribute__((aligned(b))) c; }; $ g++-10-20190602 -c z1.cc z1.cc:6:37: internal compiler error: Segmentation fault 6 | char* __attribute__((aligned(b))) c; | ^ 0xb917ef crash_signal ../../gcc/toplev.c:326 0x733bce cp_default_conversion ../../gcc/cp/typeck.c:2162 0x79c064 common_handle_aligned_attribute ../../gcc/c-family/c-attribs.c:2006 0x7485f7 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:719 0x63bcac grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.c:11302 0x651d2d grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ../../gcc/cp/decl2.c:823 0x6ca5e9 cp_parser_member_declaration ../../gcc/cp/parser.c:24774 0x6a831a cp_parser_member_specification_opt ../../gcc/cp/parser.c:24247 0x6a831a cp_parser_class_specifier_1 ../../gcc/cp/parser.c:23388 0x6a9f11 cp_parser_class_specifier ../../gcc/cp/parser.c:23650 0x6a9f11 cp_parser_type_specifier ../../gcc/cp/parser.c:17412 0x6aaaf4 cp_parser_decl_specifier_seq ../../gcc/cp/parser.c:14108 0x6c88b5 cp_parser_single_declaration ../../gcc/cp/parser.c:28153 0x6c8c3c cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:27834 0x6c9247 cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:28082 0x6c9247 cp_parser_template_declaration_after_export ../../gcc/cp/parser.c:28101 0x6cbdb9 cp_parser_declaration ../../gcc/cp/parser.c:13171 0x6cc401 cp_parser_translation_unit ../../gcc/cp/parser.c:4690 0x6cc401 c_parse_file() ../../gcc/cp/parser.c:41176 0x78a7a0 c_common_parse_file() ../../gcc/c-family/c-opts.c:1156