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 3fd24e0 commit 7694e81Copy full SHA for 7694e81
clang/include/clang/Sema/Overload.h
@@ -1448,7 +1448,9 @@ class Sema;
1448
// For user defined conversion we need to check against different
1449
// combination of CV qualifiers and look at any expicit specifier, so
1450
// always deduce template candidate.
1451
- Kind != CSK_InitByUserDefinedConversion && Kind != CSK_CodeCompletion &&
+ Kind != CSK_InitByUserDefinedConversion
1452
+ && Kind != CSK_InitByConstructor
1453
+ && Kind != CSK_CodeCompletion &&
1454
Opts.CPlusPlus && (!Opts.CUDA || Opts.GPUExcludeWrongSideOverloads);
1455
}
1456
0 commit comments