Issue 123296
Summary Clang crash when trying to evaluate a constexpr with `auto` type, variadic template before type is fully defined
Labels clang
Assignees
Reporter bricknerb
    Example:

```c++
struct MyClass {
  template <int...> static constexpr auto foo() { return 1;}
 static constexpr auto my_value = foo();
};
```

We get a "Unexpected undeduced type!" crash 

Compiler Explorer: https://godbolt.org/z/7rhT7qEeE

I believe this should be an error that says the function `foo()` isn't defined yet because the class isn't fully defined, but not a crash.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to