@Cyrax: What issues with Lazarus? Then Lazarus should fix it. The starting compiler for trunk fpc should be 3.0 as per documentation. I have no issues after regenerating the makefiles.
Again: WHAT issues with Lazarus? Point me to them...
Did you try my patch and re-generated the makefiles? <fpcmake -Tall -r (-v/q)> because that patch is more correct.
Again2: WHAT issues with Lazarus. Then I can try and fix them or point devs to how it should be solved.
Your patch is conceptually wrong although it works. My patch is the correct one.
The bug is caused by the use of default(), yes, but that is correct, since it is a feature of fpc 3.0 and trunk
must be build with 3.0 as per release build faq and wiki:
the last major release, which is 3.0.This is explicitly done so devs can use features of the release for newer code, in this case a new compiler intrinsic. You should not patch away new code if it is legal, but fix lazarus in a fpc 3 compatible way. Your patch leads to code rot.
The real fix is something like I proposed in
http://bugs.freepascal.org/view.php?id=29416 and regerate the makefile. Michael is working on it.