[Bug c++/98333] New: [10/11 Regression] ICE in check_qualified_type, at tree.c:6593
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Dec 16 18:40:58 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98333
Bug ID: 98333
Summary: [10/11 Regression] ICE in check_qualified_type, at
tree.c:6593
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20190616 and 20190623, with an extra "()" :
$ cat z1.cc
struct T
{
template <class> struct S
{ S () noexcept () {} };
int a = __has_nothrow_constructor (S<int>);
};
$ g++-11-20201213 -c z1.cc
z1.cc: In instantiation of 'T::S< <template-parameter-1-1> >::S() [with
<template-parameter-1-1> = int]':
z1.cc:5:44: required from here
z1.cc:4:5: internal compiler error: Segmentation fault
4 | { S () noexcept () {} };
| ^
0xc8f5ff crash_signal
../../gcc/toplev.c:327
0xf00280 check_qualified_type(tree_node const*, tree_node const*, int)
../../gcc/tree.c:6593
0xf00384 get_qualified_type(tree_node*, int)
../../gcc/tree.c:6625
0xf0d6b3 build_qualified_type(tree_node*, int)
../../gcc/tree.c:6656
0x654566 strip_top_quals(tree_node*)
../../gcc/cp/call.c:1177
0x654566 standard_conversion
../../gcc/cp/call.c:1202
0x656c7a implicit_conversion_1
../../gcc/cp/call.c:2008
0x656c7a implicit_conversion
../../gcc/cp/call.c:2108
0x6669df build_converted_constant_expr_internal
../../gcc/cp/call.c:4369
0x6e5289 build_noexcept_spec(tree_node*, int)
../../gcc/cp/except.c:1234
0x775ce9 maybe_instantiate_noexcept(tree_node*, int)
../../gcc/cp/pt.c:25545
0x7759f8 maybe_instantiate_noexcept(tree_node*, int)
../../gcc/cp/pt.c:25481
0x79d235 trait_expr_value
../../gcc/cp/semantics.c:10246
0x7a7c6a finish_trait_expr(unsigned int, cp_trait_kind, tree_node*, tree_node*)
../../gcc/cp/semantics.c:10449
0x748dd7 cp_parser_trait_expr
../../gcc/cp/parser.c:10749
0x73f58c cp_parser_primary_expression
../../gcc/cp/parser.c:5777
0x741b75 cp_parser_postfix_expression
../../gcc/cp/parser.c:7491
0x751a35 cp_parser_unary_expression
../../gcc/cp/parser.c:8808
0x72b84f cp_parser_cast_expression
../../gcc/cp/parser.c:9712
0x72c082 cp_parser_binary_expression
../../gcc/cp/parser.c:9814
More information about the Gcc-bugs
mailing list