File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public FlattenAnonymousTypesToFields() =>
16
16
17
17
public override bool VisitClassDecl ( Class @class )
18
18
{
19
- if ( ! base . VisitClassDecl ( @class ) || @class . Ignore || @class . IsDependent )
19
+ if ( ! base . VisitClassDecl ( @class ) || @class . Ignore )
20
20
return false ;
21
21
22
22
for ( int i = @class . Fields . Count - 1 ; i >= 0 ; i -- )
Original file line number Diff line number Diff line change @@ -221,6 +221,25 @@ void Base<T>::invokeFriend()
221
221
f (Nested ());
222
222
}
223
223
224
+ template <typename T>
225
+ struct TemplateUnionField
226
+ {
227
+ union
228
+ {
229
+ struct
230
+ {
231
+ T x, y, z;
232
+ };
233
+ T v;
234
+ };
235
+ };
236
+
237
+ struct TemplateUnionFieldInstantiation
238
+ {
239
+ TemplateUnionField<int > tuf;
240
+ TemplateUnionField<float > tuf1;
241
+ };
242
+
224
243
template <typename T>
225
244
class DependentValueFields : public Base <T>
226
245
{
You can’t perform that action at this time.
0 commit comments