public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425
@ 2022-02-23 17:59 gscfq@t-online.de
2022-02-23 19:36 ` [Bug c++/104668] " mpolacek at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2022-02-23 17:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104668
Bug ID: 104668
Summary: [12 Regression] ICE in lookup_attribute_spec, at
attribs.cc:425
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20220123 and 20220130 :
(derived from g++.dg/cpp0x/lambda/lambda-variadic15.C)
$ cat z1.cc
template <class... Ts>
void sink(Ts...);
template <class... Ts>
void f(Ts...) {
sink([] { struct alignas:Ts) S {}; }...); }
}
int main() {
f(0);
}
$ g++-12-20220220 -c z1.cc
z1.cc: In lambda function:
z1.cc:5:20: internal compiler error: Segmentation fault
5 | sink([] { struct alignas:Ts) S {}; }...); }
| ^~~~~~~
0xda25ef crash_signal
../../gcc/toplev.cc:322
0x89f4f1 lookup_attribute_spec(tree_node const*)
../../gcc/attribs.cc:425
0x75217e is_late_template_attribute
../../gcc/cp/decl2.cc:1243
0x75217e splice_template_attributes(tree_node**, tree_node*)
../../gcc/cp/decl2.cc:1340
0x752b1e cplus_decl_attributes(tree_node**, tree_node*, int)
../../gcc/cp/decl2.cc:1662
0x7eabc8 cp_parser_class_head
../../gcc/cp/parser.cc:26646
0x7eabc8 cp_parser_class_specifier_1
../../gcc/cp/parser.cc:25824
0x7eb670 cp_parser_class_specifier
../../gcc/cp/parser.cc:26204
0x7eb670 cp_parser_type_specifier
../../gcc/cp/parser.cc:19348
0x7ec1a6 cp_parser_decl_specifier_seq
../../gcc/cp/parser.cc:15911
0x7ecd61 cp_parser_simple_declaration
../../gcc/cp/parser.cc:15159
0x7ee769 cp_parser_declaration_statement
../../gcc/cp/parser.cc:14367
0x7eed6b cp_parser_statement
../../gcc/cp/parser.cc:12452
0x7efcb4 cp_parser_statement_seq_opt
../../gcc/cp/parser.cc:12856
0x7efd6f cp_parser_compound_statement
../../gcc/cp/parser.cc:12808
0x7f0778 cp_parser_function_body
../../gcc/cp/parser.cc:25062
0x7f0778 cp_parser_lambda_body
../../gcc/cp/parser.cc:11799
0x7f0778 cp_parser_lambda_expression
../../gcc/cp/parser.cc:11118
0x7f0778 cp_parser_primary_expression
../../gcc/cp/parser.cc:5700
0x7f3725 cp_parser_postfix_expression
../../gcc/cp/parser.cc:7652
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/104668] [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425
2022-02-23 17:59 [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 gscfq@t-online.de
@ 2022-02-23 19:36 ` mpolacek at gcc dot gnu.org
2022-02-24 15:36 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-02-23 19:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104668
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Target Milestone|--- |12.0
Priority|P3 |P2
Last reconfirmed| |2022-02-23
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r12-6904.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/104668] [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425
2022-02-23 17:59 [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 gscfq@t-online.de
2022-02-23 19:36 ` [Bug c++/104668] " mpolacek at gcc dot gnu.org
@ 2022-02-24 15:36 ` marxin at gcc dot gnu.org
2022-04-06 15:55 ` cvs-commit at gcc dot gnu.org
2022-04-08 16:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-02-24 15:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104668
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> Started with r12-6904.
Please update to the latest version of git gcc-descr alias (that append git
hash by default). Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/104668] [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425
2022-02-23 17:59 [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 gscfq@t-online.de
2022-02-23 19:36 ` [Bug c++/104668] " mpolacek at gcc dot gnu.org
2022-02-24 15:36 ` marxin at gcc dot gnu.org
@ 2022-04-06 15:55 ` cvs-commit at gcc dot gnu.org
2022-04-08 16:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-06 15:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104668
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:9fd377a747375a82912bd81c67b275301489785c
commit r12-8029-g9fd377a747375a82912bd81c67b275301489785c
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Apr 6 17:53:41 2022 +0200
c++: Fix up ICE when cplus_decl_attributes is called with error_mark_node
attributes [PR104668]
cplus_decl_attributes can be called with attributes equal to
error_mark_node, there are some spots in the function that test
it or decl_attributes it calls starts with:
if (TREE_TYPE (*node) == error_mark_node || attributes ==
error_mark_node)
return NULL_TREE;
But the recent PR104245 change broke this when processing_template_decl
is true.
The patch returns early for attributes error_mark_node from
cplus_decl_attributes.
2022-04-06 Jakub Jelinek <jakub@redhat.com>
PR c++/104668
* decl2.cc (splice_template_attributes): Return NULL if *p is
error_mark_node.
(cplus_decl_attributes): Return early if attributes is
error_mark_node. Don't check that later.
* g++.dg/cpp0x/pr104668.C: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/104668] [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425
2022-02-23 17:59 [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 gscfq@t-online.de
` (2 preceding siblings ...)
2022-04-06 15:55 ` cvs-commit at gcc dot gnu.org
@ 2022-04-08 16:49 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-04-08 16:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104668
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-08 16:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23 17:59 [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 gscfq@t-online.de
2022-02-23 19:36 ` [Bug c++/104668] " mpolacek at gcc dot gnu.org
2022-02-24 15:36 ` marxin at gcc dot gnu.org
2022-04-06 15:55 ` cvs-commit at gcc dot gnu.org
2022-04-08 16:49 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).