-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[Clang] [ICE] [crash-on-valid] clang frontend crashes on clang-18 #86769
Comments
@llvm/issue-subscribers-c-1 Author: LoveSy (yujincheng08)
On clang-17 it works. So this should be a regression.
Example code:
template<typename T>
concept X = true;
template <X T>
class Y {
public:
Y(T y) { }
template <X U>
friend class Y;
};
template class Y<int>;
int main() {
Y y(0);
} Online demo: https://godbolt.org/z/s7Mq65n98 Backtrace:
|
@llvm/issue-subscribers-clang-frontend Author: LoveSy (yujincheng08)
On clang-17 it works. So this should be a regression.
Example code:
template<typename T>
concept X = true;
template <X T>
class Y {
public:
Y(T y) { }
template <X U>
friend class Y;
};
template class Y<int>;
int main() {
Y y(0);
} Online demo: https://godbolt.org/z/s7Mq65n98 Backtrace:
|
@llvm/issue-subscribers-c-20 Author: LoveSy (yujincheng08)
On clang-17 it works. So this should be a regression.
Example code:
template<typename T>
concept X = true;
template <X T>
class Y {
public:
Y(T y) { }
template <X U>
friend class Y;
};
template class Y<int>;
int main() {
Y y(0);
} Online demo: https://godbolt.org/z/s7Mq65n98 Backtrace:
|
Confirmed. https://godbolt.org/z/a44zMz1bh |
The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes llvm#86769
The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes llvm#86769
The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes llvm#86769
The fix is now available on clang 18.1.3. |
The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes llvm#86769
The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes llvm#86769
On clang-17 it works. So this should be a regression.
Example code:
Online demo: https://godbolt.org/z/s7Mq65n98
Backtrace:
The text was updated successfully, but these errors were encountered: