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 70d1425 commit db4c7adCopy full SHA for db4c7ad
clang/lib/Sema/SemaDeclCXX.cpp
@@ -3807,7 +3807,7 @@ namespace {
3807
3808
const CXXRecordDecl *RD = Constructor->getParent();
3809
3810
- if (RD->getDescribedClassTemplate())
+ if (RD->isDependentContext())
3811
return;
3812
3813
// Holds fields that are uninitialized.
clang/test/SemaCXX/uninitialized.cpp
@@ -1449,3 +1449,12 @@ void if_switch_init_stmt(int k) {
1449
1450
switch (int n; (n == k || k > 5)) {} // expected-warning {{uninitialized}} expected-note {{initialize}} expected-warning {{boolean}}
1451
}
1452
+
1453
+template<typename T> struct Outer {
1454
+ struct Inner {
1455
+ int a = 1;
1456
+ int b;
1457
+ Inner() : b(a) {}
1458
+ };
1459
+};
1460
+Outer<int>::Inner outerinner;
0 commit comments