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

            Bug ID: 92517
           Summary: ICE on incorrect syntax involving requires and
                    decltype
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sbence92 at gmail dot com
  Target Milestone: ---

Naively adding decltype with wrong syntax in order fix "expected a type, got
'I'" results in segfault with following code:

template <typename T>
concept C = true;

template<int I>
requires C decltype<I>
void f() {}

flags: -std=c++2a -fconcepts

gcc 9.2 produces correct error message

Reply via email to