We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2a6a7 commit 06aec44Copy full SHA for 06aec44
source/slang/slang-check-decl.cpp
@@ -2053,7 +2053,7 @@ namespace Slang
2053
if (parentDecl)
2054
{
2055
parentDecl->addTag(getVarTypeTags());
2056
- auto unsizedMask = (int)TypeTag::Unsized | (int)TypeTag::LinkTimeSized;
+ auto unsizedMask = (int)TypeTag::Unsized;
2057
bool isUnknownSize = (((int)getVarTypeTags() & unsizedMask) != 0);
2058
if (isUnknownSize)
2059
tests/diagnostics/unsized.slang
@@ -5,6 +5,7 @@ extern static const int size = 1;
5
struct V
6
7
// CHECK-DAG: ([[# @LINE+1]]): error 30070
8
+ int c[];
9
int b[size];
10
int a[];
11
}
0 commit comments