Export (0) Print
Expand All
Expand Minimize

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;
}
Show:
© 2014 Microsoft