--- Quote Start ---
Although being a bad style, is it supposed to be an error at all ?
--- Quote End ---
It would not be an error for a simulator, but it would be an error for some of today's (and all of yesterday's) synthesis tools. Tomorrow's synthesis tools might be quite happy implementing logic clocked by both edges...but we're not up to tomorrow yet.
--- Quote Start ---
Just a guess, but would't be due to the fact that the code has cascaded "if...end if" implementations for the same variable ?
--- Quote End ---
No, because that is not an error in simulation or synthesis. If that gets flagged as an error by some tool, you would submit a bug report to the tool supplier.
Kevin Jennings