In MySQL 5.7.11, adding a composite index where one of the columns is a virtual generated column results in the following error:
Error Code: 3175. Cannot create index on virtual column whose base column has foreign constraint
In reality, the base columns from which the virtual column is generated do not have any foreign constraints, so the error message is inexplicable.
The error does not occur in MySQL 5.7.15.