Possible GCC bug.
Working VGA example.