C2005: Non-constant reference initialization with constant illegal

[ERROR]

Description

The reference type is not constant, the assigned type is.

Example
  void main(void) {

  
    const int i=1;

  
    int  &p=i;

  
  }

  
Tips

Either both are const or both are not const.