E2051 Invalid use of dot (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

An identifier must immediately follow a period operator (.). This is a rare message that can only occur in some specialized inline assembly statements.

Example

struct foo {
  int x;
  int y;
}p = {0,0};
int y;
int main (void)
{
  asm mov eax.(foo)x, 1;
  asm mov eax.(foo)4, 1;       /* Error: Invalid use of dot */
  return 0;
}