public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98635] New: ad-hoc requirement without semicolon creates internal compiler bug
@ 2021-01-12 11:07 nico at josuttis dot de
2021-01-12 14:20 ` [Bug c++/98635] " mpolacek at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: nico at josuttis dot de @ 2021-01-12 11:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98635
Bug ID: 98635
Summary: ad-hoc requirement without semicolon creates internal
compiler bug
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nico at josuttis dot de
Target Milestone: ---
https://godbolt.org/z/nPsT7n:
void printColl(auto& coll)
requires requires {
coll.begin()
}
{
}
yields:
<source>:3:24: error: expected ';' before '}' token
3 | coll.begin()
| ^
| ;
4 | }
| ~
<source>:4:10: internal compiler error: Segmentation fault
4 | }
| ^
0x1cc31d9 internal_error(char const*, ...)
???:0
0x79a2b6 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
???:0
0x79dda6 start_function(cp_decl_specifier_seq*, cp_declarator const*,
tree_node*)
???:0
0x8d803d c_parse_file()
???:0
0xa54072 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.
Compiler returned: 1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98635] ad-hoc requirement without semicolon creates internal compiler bug
2021-01-12 11:07 [Bug c++/98635] New: ad-hoc requirement without semicolon creates internal compiler bug nico at josuttis dot de
@ 2021-01-12 14:20 ` mpolacek at gcc dot gnu.org
2022-01-04 2:19 ` pinskia at gcc dot gnu.org
2022-01-04 2:24 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-01-12 14:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98635
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-01-12
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98635] ad-hoc requirement without semicolon creates internal compiler bug
2021-01-12 11:07 [Bug c++/98635] New: ad-hoc requirement without semicolon creates internal compiler bug nico at josuttis dot de
2021-01-12 14:20 ` [Bug c++/98635] " mpolacek at gcc dot gnu.org
@ 2022-01-04 2:19 ` pinskia at gcc dot gnu.org
2022-01-04 2:24 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-04 2:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98635
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.2.0
Keywords| |needs-bisection
Known to work| |12.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks to be fixed on the trunk:
<source>:4:24: error: expected ';' before '}' token
4 | coll.begin()
| ^
| ;
5 | }
| ~
<source>:2:6: error: constraints on a non-templated function
2 | void printColl(auto& coll)
| ^~~~~~~~~
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98635] ad-hoc requirement without semicolon creates internal compiler bug
2021-01-12 11:07 [Bug c++/98635] New: ad-hoc requirement without semicolon creates internal compiler bug nico at josuttis dot de
2021-01-12 14:20 ` [Bug c++/98635] " mpolacek at gcc dot gnu.org
2022-01-04 2:19 ` pinskia at gcc dot gnu.org
@ 2022-01-04 2:24 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-04 2:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98635
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Even though PR 100055 is newer, it records the revision at which this bug is
fixed so closing this bug as a dup of bug 100055.
*** This bug has been marked as a duplicate of bug 100055 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-04 2:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 11:07 [Bug c++/98635] New: ad-hoc requirement without semicolon creates internal compiler bug nico at josuttis dot de
2021-01-12 14:20 ` [Bug c++/98635] " mpolacek at gcc dot gnu.org
2022-01-04 2:19 ` pinskia at gcc dot gnu.org
2022-01-04 2:24 ` 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).