seanbaxter / circle

The compiler is available for download. Get it!
http://www.circle-lang.org/
2.35k stars 72 forks source link

Segmentation fault upon unexpanded parameter pack in concept #125

Open jaredhoberock opened 2 years ago

jaredhoberock commented 2 years ago

The following program

template<class... Ts>
concept variadic_concept_1 = true;

template<class... Ts>
concept variadic_concept_2 = variadic_concept_1<Ts>;

int main()
{
  return 0;
}

causes circle to crash:

$ circle -std=c++20 repro.cpp 
Segmentation fault (core dumped)

Compiler details:

$ circle --version
circle version 1.0.0-169
  Circle public preview build 169
  Built Apr 24 2022 21:27:15
  (c) 2022 Sean Baxter
  https://www.circle-lang.org/
  Twitter: @seanbax