https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122561

            Bug ID: 122561
           Summary: internal compiler error: in dependent_type_p, at
                    cp/pt.cc:29025 since 14.1
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mario.rodriguezb1 at um dot es
  Target Milestone: ---

## Program

```
template <typename T>
concept FixedPoints = sizeof(T) == 4;
template <typename T>
concept DecimalDigits = sizeof(T) == 4;
template <typename T>
concept ComplexChecks = (FixedPoints<T>, DecimalDigits<T>);
```

## Stack dump

```
<source>:2:23: internal compiler error: in dependent_type_p, at cp/pt.cc:29025
    2 | concept FixedPoints = sizeof(T) == 4;
      |                       ^~~~~~~~~
0x2903958 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x28f874b internal_error(char const*, ...)
        ???:0
0xb0cc90 fancy_abort(char const*, int, char const*)
        ???:0
0xe0ebeb cxx_sizeof_or_alignof_type(unsigned long, tree_node*, tree_code, bool,
bool)
        ???:0
0xb9ed68 evaluate_concept_check(tree_node*)
        ???:0
0xbc3e5a convert_to_void(tree_node*, impl_conv_void, int)
        ???:0
0xe111bc cp_build_compound_expr(tree_node*, tree_node*, int)
        ???:0
0xe1151d build_x_compound_expr(unsigned long, tree_node*, tree_node*,
tree_node*, int)
        ???:0
0xd45d23 c_parse_file()
        ???:0
0xeb6739 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

## To quickly reproduce:

https://godbolt.org/z/n39f5joov

Reply via email to