News for hackers. Stuff that matters.
Re:C, Fortran, and single-character strings by uxp100 on Saturday June 22, 2019 @08:16AM (#20249201)
That doesn't sound like undefined behavior to me. Or at least a different definition than the normal one.
Re:C, Fortran, and single-character strings by kazinator on Saturday June 22, 2019 @02:05PM (#20250880)
"C undefined behavior" is the status of the behavior of a C program for which a requirement cannot be found in ISO C by omission, or for which ISO C explicitly says that it's not giving a requirement. No requirement can be found in ISO C for linkage with Fortran.

There is another "undefined behavior" which is the informal situation that happens when a behavior is not defined by anyone at all: not ISO C, not the platform's ABI or API's, not the compiler reference manual. (That is hard to pin down, because what does it mean? If I compile a program, it's always defined by whatever the object code is doing. We can interpret the instructions through the architecture reference manual, and if we don't find a problem then, hey, it's defined! (However, the compiler's documentation doesn't guarantee the consistency of always producing that particular compiler output for that program.)

In any case, that Bugzilla comment specifically said "C undefined behavior".