File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public override bool VisitFunctionDecl(Function function)
46
46
Type type = parameter . Type . Desugar ( resolveTemplateSubstitution : false ) ;
47
47
type = ( type . GetFinalPointee ( ) ?? type ) . Desugar (
48
48
resolveTemplateSubstitution : false ) ;
49
- if ( type is TemplateParameterSubstitutionType )
49
+ if ( type is TemplateParameterSubstitutionType || type . IsDependent )
50
50
{
51
51
parameter . DefaultArgument = null ;
52
52
continue ;
Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ public void TestExtensionsOfSpecializationsAsSecondaryBases()
951
951
[ Test ]
952
952
public void TestFieldWithDependentPointerType ( )
953
953
{
954
- using ( var dependentPointerFields = new DependentPointerFields < float > ( ) )
954
+ using ( var dependentPointerFields = new DependentPointerFields < float > ( 0 ) )
955
955
{
956
956
}
957
957
}
Original file line number Diff line number Diff line change @@ -240,15 +240,15 @@ template <typename T>
240
240
class DLL_API DependentPointerFields
241
241
{
242
242
public:
243
- DependentPointerFields ();
243
+ DependentPointerFields (T t = 0 );
244
244
~DependentPointerFields ();
245
245
T property ();
246
246
T takeField (T t);
247
247
T* field;
248
248
};
249
249
250
250
template <typename T>
251
- DependentPointerFields<T>::DependentPointerFields()
251
+ DependentPointerFields<T>::DependentPointerFields(T t )
252
252
{
253
253
}
254
254
You can’t perform that action at this time.
0 commit comments