public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100172] New: ICE with "concept concept" keyword in struct
@ 2021-04-21 4:10 hewillk at gmail dot com
2021-04-21 4:31 ` [Bug c++/100172] " hewillk at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-04-21 4:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
Bug ID: 100172
Summary: ICE with "concept concept" keyword in struct
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
The following only shows a warning, which may be related to fixed PR97536.
struct {
concept concept;
};
<source>:2:3: warning: C++20 concept definition syntax is 'concept <name> =
<expr>'
2 | concept concept;
| ^~~~~~~
<source>:2:11: warning: C++20 concept definition syntax is 'concept <name> =
<expr>'
2 | concept concept;
| ^~~~~~~
'
Segmentation fault
0x1d030c9 internal_error(char const*, ...)
???:0
0x1d1eb4b pp_format(pretty_printer*, text_info*)
???:0
0x1d01c4a diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
???:0
0x1d049e6 error_at(rich_location*, char const*, ...)
???:0
0x8e261d c_parse_file()
???:0
0xa62752 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/100172] ICE with "concept concept" keyword in struct
2021-04-21 4:10 [Bug c++/100172] New: ICE with "concept concept" keyword in struct hewillk at gmail dot com
@ 2021-04-21 4:31 ` hewillk at gmail dot com
2021-04-21 4:42 ` hewillk at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-04-21 4:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
And gcc-trunk accepts this non-sense snippet:
https://godbolt.org/z/PbTa55eTx
void f(auto) {
struct S {
concept enum E {};
};
[]() requires S::E {};
}
template void f(int);
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/100172] ICE with "concept concept" keyword in struct
2021-04-21 4:10 [Bug c++/100172] New: ICE with "concept concept" keyword in struct hewillk at gmail dot com
2021-04-21 4:31 ` [Bug c++/100172] " hewillk at gmail dot com
@ 2021-04-21 4:42 ` hewillk at gmail dot com
2021-04-21 15:08 ` [Bug c++/100172] ICE with "concept concept" keyword mpolacek at gcc dot gnu.org
2024-04-15 22:39 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-04-21 4:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
--- Comment #2 from 康桓瑋 <hewillk at gmail dot com> ---
The struct bit is a red herring. It can be boiled down to just two concept
keywords:
https://godbolt.org/z/sW7vr3sso
concept concept;
<source>:1:1: warning: C++20 concept definition syntax is 'concept <name> =
<expr>'
1 | concept concept;
| ^~~~~~~
<source>:1:9: warning: C++20 concept definition syntax is 'concept <name> =
<expr>'
1 | concept concept;
| ^~~~~~~
'
Segmentation fault
0x1d030c9 internal_error(char const*, ...)
???:0
0x1d1eb4b pp_format(pretty_printer*, text_info*)
???:0
0x1d01c4a diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
???:0
0x1d049e6 error_at(rich_location*, char const*, ...)
???:0
0x8e261d c_parse_file()
???:0
0xa62752 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/100172] ICE with "concept concept" keyword
2021-04-21 4:10 [Bug c++/100172] New: ICE with "concept concept" keyword in struct hewillk at gmail dot com
2021-04-21 4:31 ` [Bug c++/100172] " hewillk at gmail dot com
2021-04-21 4:42 ` hewillk at gmail dot com
@ 2021-04-21 15:08 ` mpolacek at gcc dot gnu.org
2024-04-15 22:39 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-04-21 15:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2021-04-21
Status|UNCONFIRMED |NEW
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/100172] ICE with "concept concept" keyword
2021-04-21 4:10 [Bug c++/100172] New: ICE with "concept concept" keyword in struct hewillk at gmail dot com
` (2 preceding siblings ...)
2021-04-21 15:08 ` [Bug c++/100172] ICE with "concept concept" keyword mpolacek at gcc dot gnu.org
@ 2024-04-15 22:39 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-15 22:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems have been fixed for GCC 12.1.0.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-15 22:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 4:10 [Bug c++/100172] New: ICE with "concept concept" keyword in struct hewillk at gmail dot com
2021-04-21 4:31 ` [Bug c++/100172] " hewillk at gmail dot com
2021-04-21 4:42 ` hewillk at gmail dot com
2021-04-21 15:08 ` [Bug c++/100172] ICE with "concept concept" keyword mpolacek at gcc dot gnu.org
2024-04-15 22:39 ` 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).