regcomp.c and regexec.c use old K&R function definitions instead of the ANSI C.
this makes it impossible to compile regex with g++.
glibc regex is used by gnulib
and thus by dozens of packages that import regex from gnulib.
this makes all those packages uncompilable with g++.
(even when the package is plain C, it is useful to compile it
with c++ every now and then to get a better type checking).
I have patched regcomp.c and regexec.c to compile with g++.
I don't see a way to attach a file though.
Created attachment 2055 [details]
regexec ansi C patch
Created attachment 2056 [details]
regcomp ansi C patch
regex is C code, don't use a C++ compiler. The use of K&R is deliberate and
will not be changed.