D-Programming-Language/dmd — pull request #1190 by rainers (2012-10-17 07:37:29+00:00)
Title: fix issue 8818:  CTFE fails to compare strings correctly

The current code compares the lengths of arrays first to figure out which one is greater, but that is no good idea for strings. I'm not perfectly sure if the optimization was necessary for other arrays, though.

The patch compares the elements first, and only uses the length comparisons to resolve a tie.