Oct. 26, 2022
2:16 p.m.
Paul Eggert <eggert@cs.ucla.edu> writes:
The core dump occurred because GCC translates this:
qsort(links, nlinks, sizeof *links, qsort_linkcmp);
as if it were this:
if (nlinks == 0) __builtin_trap(); qsort(links, nlinks, sizeof *links, qsort_linkcmp);
Right, so they are actually going out of their way to make it a gotcha. What point does that serve? regards, tom lane