Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 513 Bytes

compiler-error-c2636.md

File metadata and controls

25 lines (21 loc) · 513 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2636
Compiler Error C2636
11/04/2016
C2636
C2636
379873ec-8d05-49f8-adf1-b067bc07bdb8

Compiler Error C2636

'identifier' : pointer to reference member is illegal

A pointer to a reference member was declared.

The following sample generates C2636:

// C2636.cpp
struct S {};
int main() {
   int &S::*prs;   // C2636
   int S::*prs1;   // OK
   int *S::*prs2;   // OK
}