C5403: Trying to take address of register

[ERROR]

Description

The compiler tries to take the address of a register which is not possible.

Example
  void main(void) {

  
    int a, b;

  
    int *p;

  
    

  
    p = &(a+b);  (ERROR: result a+b is in register)

  
  }

  
Tips

Do not use the address operator for temporary results.

See also