mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 17:46:40 +00:00

Fixes: #77071 `SubstituteDeducedTypeTransform` will transform type and it will visit uninstantiated `ExceptionSpecInfo`, which will cause odd behavior.
14 lines
387 B
C++
14 lines
387 B
C++
// RUN: %clang_cc1 -fsyntax-only -std=c++17 %s
|
|
// expected-no-diagnostics
|
|
|
|
using A = int;
|
|
using B = char;
|
|
|
|
template <class T> struct C {
|
|
template <class V> void f0() noexcept(sizeof(T) == sizeof(A) && sizeof(V) == sizeof(B)) {}
|
|
template <class V> auto f1(V a) noexcept(1) {return a;}
|
|
};
|
|
|
|
void (C<int>::*tmp0)() noexcept = &C<A>::f0<B>;
|
|
int (C<int>::*tmp1)(int) noexcept = &C<A>::f1;
|