Compiler Error C3400
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3400.
circular constraint dependency involving 'constraint_1' and 'constraint_2'
The compiler detected circular constraints.
For more information, see Constraints on Generic Type Parameters (C++/CLI).
The following sample generates C3400.
// C3400.cpp
// compile with: /clr /c
generic<class T, class U>
where T : U
where U : T // C3400
public ref struct R {};
Show: