wrote in message
news:3789b88b-d39d-4f02...@googlegroups.com...
On Monday, 15 February 2016 21:37:51 UTC+1, FortranFan wrote:
> > Perhaps it's an issue with gfortran hash scheme?
> It is indeed the hash scheme. Both names have the hash 43152863.
> Perhaps James already knew that was the case? :-)
Not the hash value specifically, but it's easy to search for two
strings that hash the same.
> Nuts! I had hoped that we would survive on the SDBM algorithm
> since it is so simple and that the choice of names that mean
> something would reduce the possibility of collisions. However,
> I guessed that this would come up one day but I did not exepct
> that it would take as long as 7 years.
> This is now PR69834 on gcc Bugzilla.
I find it surprising that an Easter egg like this exists in gfortran
that can causes random incorrect results. In the original example
if the second TYPE IS clause were omitted, the program would
simply print out the wrong answer. So there may already be
programs out there in the wild that are doing so, see the
birthday paradox.