[PATCH] D136554: Implement CWG2631
Chris Bowler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 16 09:00:20 PST 2023
cebowleratibm added a comment.
I've reduced a regression on:
commit ca619613801233ef2def8c3cc7d311d5ed0033cb <https://reviews.llvm.org/rGca619613801233ef2def8c3cc7d311d5ed0033cb> (HEAD, refs/bisect/bad)
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: Sun Oct 23 17:32:58 2022 +0200
template <class T> int f(T) { return 42; }
struct A {
int x = f(A());
A() { }
};
void foo() { A(); }
clang++ t2.C -c
t2.C:4:12: warning: stack nearly exhausted; compilation time may suffer, and crashes due to stack overflow are likely [-Wstack-exhausted]
int x = f(A());
^
Segmentation fault (core dumped)
@cor3ntin would you like me to open a new issue?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136554/new/
https://reviews.llvm.org/D136554
More information about the cfe-commits
mailing list