Hendrik Schober
10/18/2008 7:48:00 PM
James Kanze wrote:
> On Oct 15, 1:46 pm, Hendrik Schober <spamt...@gmx.de> wrote:
>> Kai-Uwe Bux wrote:
>>> [...] I get compiler errors almost all the time,
>>> but I have found only 10 compiler bugs so far.
>
>> You need to do more porting. Or more template stuff. Or both. :)
>
> It depends on what his boss is paying him to do: write working
> (and maintainable) code, or stress test compilers. With modern
> compilers, it's actually fairly rare to stumble on a compiler
> bug unless you're pushing the envelope well beyond what is
> reasonable in a normal production environment.
In the last decade I have written code that needed to compile
using several versions of Borland, Microsoft, Metrowerks, GCC,
multiplied with several std lib implementations (and versions
thereof) and, at least with GCC, several platforms. Although,
in my experience, too, most of the time when at first I thought
I'd found a compiler error I have found one of my own, I did
find several dozen of compiler errors in that time -- and not
just in obscure corner cases. And quite a lot of my 10 years
old code is still in use (although it doesn't need all that
much maintenance nowadays).
But, yes, I was paid to write portable code (and to get compiler
vendors to send us hotfixes).
Schobi