This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/60958] Initialization of arrays in tr1/regex ill-formed or with undefined behaviour
- From: "hstong at ca dot ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Apr 2014 13:27:50 +0000
- Subject: [Bug libstdc++/60958] Initialization of arrays in tr1/regex ill-formed or with undefined behaviour
- Auto-submitted: auto-generated
- References: <bug-60958-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60958
--- Comment #2 from Hubert Tong <hstong at ca dot ibm.com> ---
(In reply to Jonathan Wakely from comment #1)
> Yes, I have a patch for this somewhere, but why are you including
> <tr1/regex> anyway? It's completely useless and doesn't work.
I am trying to use a code base which used a TR1 regex implementation on another
platform. Your comment led me to find
http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1,
which does indicate that tr1/regex does not work. Is the recommendation (short
of switching over to C++11) to use the Boost implementation? Is the TR1
implementation status of regex in libstdc++ likely to change in the future?