I confirm this problem.
I tried to compile code downloaded from svn. I faced the similar errors. Later I cleaned few times and restarted the build and it got compiled. I think it was svn 3291. :? Though the problem got solved but I'm not sure how it got solved!!
I was compiling Code::Blocks on Windows XP SP2, GCC 3.4.5 (MinGW Build).