Skip to content

Assertion failure in C++17 mode in TreeTransform<Derived>::TransformExceptionSpec #77071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HerrCai0907 opened this issue Jan 5, 2024 · 1 comment · Fixed by #77073
Closed
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@HerrCai0907
Copy link
Contributor

part of reproduction for #73621

using A = int;
using B = char;

template <class T> struct C {
  template <class V> auto f1(V a) noexcept(1) {return a;}
};

int (C<int>::*tmp1)(int) noexcept = &C<A>::f1;

https://godbolt.org/z/hKcjeYcqf

@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels Jan 5, 2024
@llvmbot
Copy link
Member

llvmbot commented Jan 5, 2024

@llvm/issue-subscribers-clang-frontend

Author: Congcong Cai (HerrCai0907)

part of reproduction for #73621
using A = int;
using B = char;

template &lt;class T&gt; struct C {
  template &lt;class V&gt; auto f1(V a) noexcept(1) {return a;}
};

int (C&lt;int&gt;::*tmp1)(int) noexcept = &amp;C&lt;A&gt;::f1;

https://godbolt.org/z/hKcjeYcqf

HerrCai0907 added a commit that referenced this issue Jan 5, 2024
…r` (#77073)

Fixes: #77071
`SubstituteDeducedTypeTransform` will transform type and it will visit
uninstantiated `ExceptionSpecInfo`, which will cause odd behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants