We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c8609 commit 9e94606Copy full SHA for 9e94606
clang/lib/AST/Interp/Pointer.h
@@ -553,6 +553,9 @@ class Pointer {
553
if (!asBlockPointer().Pointee)
554
return false;
555
556
+ if (isUnknownSizeArray())
557
+ return false;
558
+
559
return isElementPastEnd() ||
560
(getSize() == getOffset() && !isZeroSizeArray());
561
}
clang/test/AST/Interp/arrays.cpp
@@ -626,3 +626,4 @@ constexpr int *get2() {
626
extern int same_entity_2[];
627
return same_entity_2;
628
629
+static_assert(get2() == same_entity_2, "failed to find previous decl");
0 commit comments