https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67807
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The testcase doesn't show any problem, and nothing fails as claimed. The return value 1 does not mean opening the catalog failed, it is not an error code, it's a handle for a catalog. After calling do_open() twice you have two different handles (which happen to refer to the same catalog, but that's beside the point). The behaviour you see is conforming, and not a bug.