Skip to content

Commit bedfe40

Browse files
committed
addressed comments
1 parent fb659cb commit bedfe40

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ Bug Fixes in This Version
269269
- Fixes crash when trying to obtain the common sugared type of
270270
`decltype(instantiation-dependent-expr)`.
271271
Fixes (`#67603 <https://github.com/llvm/llvm-project/issues/67603>`_)
272+
- Fixes a crash caused by a multidimensional array being captured by a lambda
273+
(`#67722 <https://github.com/llvm/llvm-project/issues/67722>`_).
272274

273275
Bug Fixes to Compiler Builtins
274276
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -370,6 +372,9 @@ Bug Fixes to C++ Support
370372
argument. Fixes:
371373
(`#67395 <https://github.com/llvm/llvm-project/issues/67395>`_)
372374

375+
- Fix a bug when destructors in a ``constexpr`` structured binding were
376+
called at the wrong place.
377+
373378
Bug Fixes to AST Handling
374379
^^^^^^^^^^^^^^^^^^^^^^^^^
375380
- Fixed an import failure of recursive friend class template.

clang/test/AST/Interp/arrays.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s
2-
// RUN: %clang_cc1 -verify=ref -DCUR_INTERP %s
2+
// RUN: %clang_cc1 -verify=ref %s
33

44
constexpr int m = 3;
55
constexpr const int *foo[][5] = {
@@ -352,10 +352,6 @@ namespace ZeroInit {
352352
}
353353

354354
namespace ArrayInitLoop {
355-
/// FIXME: The ArrayInitLoop for the decomposition initializer in g() has
356-
/// f(n) as its CommonExpr. We need to evaluate that exactly once and not
357-
/// N times as we do right now.
358-
#ifndef CUR_INTERP
359355
struct X {
360356
int arr[3];
361357
};
@@ -369,5 +365,4 @@ namespace ArrayInitLoop {
369365
}
370366
static_assert(g() == 6); // expected-error {{failed}} \
371367
// expected-note {{15 == 6}}
372-
#endif
373368
}

0 commit comments

Comments
 (0)