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.

Reply via email to