public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
@ 2020-04-03 20:43 asolokha at gmx dot com
2020-04-04 9:49 ` [Bug c++/94481] [10 Regression] " marxin at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2020-04-03 20:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
Bug ID: 94481
Summary: ICE: Segmentation fault (in
cp_parser_placeholder_type_specifier)
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
g++-10.0.1-alpha20200329 snapshot (g:60c254b279e8e8443b8ad26cc46b9e4084cff66c)
ICEs when compiling the following testcase, extracted from
test/Parser/cxx2a-placeholder-type-constraint.cpp from the clang 10.0.0 test
suite, w/ -std=c++2a:
template<typename T, typename U=void>
concept C = true;
void foo() {
C decltype a19 = 1;
}
% g++-10.0.1 -std=c++2a -c siabxbp8.cpp
siabxbp8.cpp: In function 'void foo()':
siabxbp8.cpp:5:5: internal compiler error: Segmentation fault
5 | C decltype a19 = 1;
| ^~~~~~~~
0xfe238f crash_signal
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/toplev.c:328
0x980d5d cp_parser_placeholder_type_specifier
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:18381
0x9b39d7 cp_parser_simple_type_specifier
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:18247
0x996e45 cp_parser_type_specifier
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:17784
0x997fb5 cp_parser_decl_specifier_seq
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:14356
0x998a54 cp_parser_simple_declaration
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13610
0x99a8fa cp_parser_declaration_statement
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13163
0x99b56f cp_parser_statement
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11469
0x99c4d8 cp_parser_statement_seq_opt
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11835
0x99c5b8 cp_parser_compound_statement
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11785
0x9b4855 cp_parser_function_body
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23062
0x9b4855 cp_parser_ctor_initializer_opt_and_function_body
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23113
0x9b7cf6 cp_parser_function_definition_after_declarator
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:28988
0x9b8d89 cp_parser_function_definition_from_specifiers_and_declarator
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:28904
0x9b8d89 cp_parser_init_declarator
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:20669
0x998b56 cp_parser_simple_declaration
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13731
0x9c3302 cp_parser_declaration
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13430
0x9c3a9f cp_parser_translation_unit
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:4731
0x9c3a9f c_parse_file()
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:43944
0xadbadb c_common_parse_file()
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/c-family/c-opts.c:1186
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/94481] [10 Regression] ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
@ 2020-04-04 9:49 ` marxin at gcc dot gnu.org
2020-04-04 13:56 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-04 9:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Summary|ICE: Segmentation fault (in |[10 Regression] ICE:
|cp_parser_placeholder_type_ |Segmentation fault (in
|specifier) |cp_parser_placeholder_type_
| |specifier)
Last reconfirmed| |2020-04-04
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r10-3735-gcb57504a55015891.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/94481] [10 Regression] ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
2020-04-04 9:49 ` [Bug c++/94481] [10 Regression] " marxin at gcc dot gnu.org
@ 2020-04-04 13:56 ` jakub at gcc dot gnu.org
2020-04-07 4:14 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-04 13:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.0
CC| |jakub at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/94481] [10 Regression] ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
2020-04-04 9:49 ` [Bug c++/94481] [10 Regression] " marxin at gcc dot gnu.org
2020-04-04 13:56 ` jakub at gcc dot gnu.org
@ 2020-04-07 4:14 ` jason at gcc dot gnu.org
2020-04-07 20:50 ` cvs-commit at gcc dot gnu.org
2020-04-08 5:11 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2020-04-07 4:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/94481] [10 Regression] ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
` (2 preceding siblings ...)
2020-04-07 4:14 ` jason at gcc dot gnu.org
@ 2020-04-07 20:50 ` cvs-commit at gcc dot gnu.org
2020-04-08 5:11 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-07 20:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:31449cf8e119bbe172a68689068591827472da5c
commit r10-7608-g31449cf8e119bbe172a68689068591827472da5c
Author: Jason Merrill <jason@redhat.com>
Date: Tue Apr 7 00:22:55 2020 -0400
c++: ICE on invalid concept placeholder [PR94481].
Here the 'decltype' is missing '(auto)', so open_paren was NULL, and trying
to get its location is a SEGV. Using matching_parens avoids that problem.
gcc/cp/ChangeLog
2020-04-07 Jason Merrill <jason@redhat.com>
PR c++/94481
* parser.c (cp_parser_placeholder_type_specifier): Use
matching_parens.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/94481] [10 Regression] ICE: Segmentation fault (in cp_parser_placeholder_type_specifier)
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
` (3 preceding siblings ...)
2020-04-07 20:50 ` cvs-commit at gcc dot gnu.org
@ 2020-04-08 5:11 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2020-04-08 5:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94481
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-04-08 5:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 20:43 [Bug c++/94481] New: ICE: Segmentation fault (in cp_parser_placeholder_type_specifier) asolokha at gmx dot com
2020-04-04 9:49 ` [Bug c++/94481] [10 Regression] " marxin at gcc dot gnu.org
2020-04-04 13:56 ` jakub at gcc dot gnu.org
2020-04-07 4:14 ` jason at gcc dot gnu.org
2020-04-07 20:50 ` cvs-commit at gcc dot gnu.org
2020-04-08 5:11 ` jason 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).