The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Compiler Error C3823


'modifier' : storage class modifier can only be applied to a pointer

modifier can only be applied to pointers.

C3823 is only reachable using /clr:oldSyntax.

The following sample generates C3823:

// C3823.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>

__pin struct A {   // C3823, cannot use __pin on a struct

struct B {

int main() {
   __pin B *a1;   // C3823
   // try ..
   // B __pin* a2;