public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99521] New: ICE Segmentation fault when decltype lambda in requires clause
@ 2021-03-10 16:01 hewillk at gmail dot com
2021-03-10 16:12 ` [Bug c++/99521] " hewillk at gmail dot com
2022-01-04 2:27 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: hewillk at gmail dot com @ 2021-03-10 16:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
Bug ID: 99521
Summary: ICE Segmentation fault when decltype lambda in
requires clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
This may be related/duplicated to the 99513, but I am not sure.
The following invalid code will trigger Segmentation fault on gcc-11:
int main() {
[](auto) requires (decltype;
}
(godbolt: https://godbolt.org/z/WaP6qe)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99521] ICE Segmentation fault when decltype lambda in requires clause
2021-03-10 16:01 [Bug c++/99521] New: ICE Segmentation fault when decltype lambda in requires clause hewillk at gmail dot com
@ 2021-03-10 16:12 ` hewillk at gmail dot com
2022-01-04 2:27 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: hewillk at gmail dot com @ 2021-03-10 16:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
康桓瑋 <hewillk at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
This is duplicate of 99465.
*** This bug has been marked as a duplicate of bug 99465 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99521] ICE Segmentation fault when decltype lambda in requires clause
2021-03-10 16:01 [Bug c++/99521] New: ICE Segmentation fault when decltype lambda in requires clause hewillk at gmail dot com
2021-03-10 16:12 ` [Bug c++/99521] " hewillk at gmail dot com
@ 2022-01-04 2:27 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-04 2:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery
Last reconfirmed| |2022-01-04
Ever confirmed|0 |1
Severity|normal |trivial
Resolution|DUPLICATE |---
Status|RESOLVED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This one still ICEs but in a different location on the trunk:
<source>: In function 'int main()':
<source>:3:22: error: expected primary-expression before 'decltype'
3 | [](auto) requires (decltype;
| ^~~~~~~~
<source>:3:22: error: expected ')' before 'decltype'
3 | [](auto) requires (decltype;
| ~^~~~~~~~
| )
<source>:3:3: error: constraints on a non-templated function
3 | [](auto) requires (decltype;
| ^
<source>:3:22: internal compiler error: in dependent_type_p, at cp/pt.c:27143
3 | [](auto) requires (decltype;
| ^~~~~~~~
0x21349c9 internal_error(char const*, ...)
???:0
0x73802f fancy_abort(char const*, int, char const*)
???:0
0x990c38 dependent_type_p(tree_node*)
???:0
0x819798 start_preparsed_function(tree_node*, tree_node*, int)
???:0
0x895754 start_lambda_function(tree_node*, tree_node*)
???:0
0x9790cd c_parse_file()
???:0
0xb07012 c_common_parse_file()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-04 2:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 16:01 [Bug c++/99521] New: ICE Segmentation fault when decltype lambda in requires clause hewillk at gmail dot com
2021-03-10 16:12 ` [Bug c++/99521] " hewillk at gmail dot com
2022-01-04 2:27 ` pinskia 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).