Due to a problem in the Quartus® Prime Standard Edition Software version 21.1 and earlier, you may see this error during compilation in the synthesis stage when the wire is named as below:
wire signal_name[0]
This is because the Quartus® Prime Standard Edition Software does not support index numbers signal names.
To work around this problem, change the name of the wire to the below example:
wire signal_name_0
This problem is scheduled to be fixed in future release with the Quartus® Prime Standard Edition Software.