On Mon, 9 Apr 2018 10:28:34 -0400, Charles Mills wrote:
>To clarify, by "works" you mean does NOT ABEND?
Oops, yes, I meant "does not ABEND".
--
For IBM-MAIN subscribe / signoff / archive access instructions,
That fixed it. Thanks,
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Tuesday, April 10, 2018 8:31 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
It seems that you
st [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Monday, April 9, 2018 9:33 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
On 9/04/2018 7:55 PM, Charles Mills wrote:
David -
Thanks for everything. I guess I will PMR it. As pointed out in anothe
Initializing in the constructor no help:
std::tr1::regex *regex_p = new std::tr1::regex("foo", flags);
// here we would use the regex
delete regex_p;
CEE3204S The system detected a protection exception (System Completion
Code=0C4).
From
std::tr1::_EBCDIC::basic_regex<char,std::tr1::_EBCDIC::regex_traits > *".
z/OS V2R2
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Monday, April 9, 2018 9:33 AM
To: IBM-MAIN@LISTSERV.UA
)
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of Jerry Callen
Sent: Monday, April 9, 2018 10:09 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
Works for me, using exactly
To clarify, by "works" you mean does NOT ABEND?
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Sunday, April 8, 2018 7:02 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex temp
Works for me, using exactly the code posted, so it looks like something
peculiar to your maintenance level. I'd open a PMR.
make -k CHARSET=ebcdic
xlC -Wc,phaseid -qebcdic -q64 -qnocse -qgonum -qbitfield=signed
-qtarget=zosv2r2 -qarch=10 -qstrict \
-qfloat=ieee:nomaf -qlanglvl=extended0x -O2
:iterator or use
typedefs.
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Monday, April 9, 2018 12:38 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
Charles,
D
Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Monday, April 9, 2018 12:38 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
Charles,
Do you get fed up with having to specify the pesky tr1
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Charles Mills
Sent: Friday, April 6, 2018 6:00 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Any C++ regex template class gotchas?
X-posted to IBM-MAIN and MVS-OE. (The latter seems more appr
On 9/04/2018 8:51 AM, Andrew Rowley wrote:
On 9/04/2018 4:09 AM, Charles Mills wrote:
#include
#define __IBMCPP_TR1__ 1
#include
class myRegex
{
public:
std::tr1::regex regexObject;
};
int main(int argc, char* argv[])
{
printf("RegEx test 4/6/2018\n");
On 9/04/2018 4:09 AM, Charles Mills wrote:
#include
#define __IBMCPP_TR1__ 1
#include
class myRegex
{
public:
std::tr1::regex regexObject;
};
int main(int argc, char* argv[])
{
printf("RegEx test 4/6/2018\n");
std::tr1::regex::flag_type flags = std::tr1::regex::extended;
On 9/04/2018 3:18 AM, Jack J. Woehr wrote:
On 4/8/2018 1:04 PM, Charles Mills wrote:
It do. The error message is ABEND=S0C4 U REASON=0004.
Try initializing the regex in the declaration instead of doing it in
main() via pointer-to-reference;
That's not a pointer-to-reference. A
Works ok for me. The code is sound so I would open a PMR.
On 9/04/2018 2:09 AM, Charles Mills wrote:
#include
#define __IBMCPP_TR1__ 1
#include
class myRegex
{
public:
std::tr1::regex regexObject;
};
int main(int argc, char* argv[])
{
printf("RegEx test 4/6/2018\n");
On 4/8/2018 2:58 PM, Charles Mills wrote:
The pattern is supplied at run time -- as is typical of regex implementations
-- so no number of subclasses solves the problem.
Put the flags in the same scope as the regex and naybe it doesn't blow up.
Either forget about your RegexObject and just
On 4/8/2018 2:58 PM, Charles Mills wrote:
I firmly believe this is a bug, and I do have a workaround, l
I'll betcha it's not a bug, it's something about the flags being out of
scope before the dtor is called for the object.
C++ is, to put it mildly, design-heavy.
You can prove it if you
: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
On 4/8/2018 1:43 PM, Charles Mills wrote:
> Thanks, but won't work well in the real code.
Besides, the C++ way to do that is to have subclasses with increasingly
specific ctors for your needs, not mess with a template's
On 4/8/2018 1:43 PM, Charles Mills wrote:
Thanks, but won't work well in the real code.
Besides, the C++ way to do that is to have subclasses with increasingly
specific ctors for your needs, not mess with a template's internal data
in main().
Betcha if you work on the class design a little
On 4/8/2018 1:43 PM, Charles Mills wrote:
Thanks, but won't work well in the real code.
I just meant as a debugging step. Make it work, then make it break again
and you're home.
--
Jack J. Woehr # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a
::extended is necessary. ECMA (the default) works.
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of Jack J. Woehr
Sent: Sunday, April 8, 2018 3:18 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas
On 4/8/2018 1:04 PM, Charles Mills wrote:
It do. The error message is ABEND=S0C4 U REASON=0004.
Try initializing the regex in the declaration instead of doing it in
main() via pointer-to-reference;
--
Jack J. Woehr # Science is more than a body of knowledge. It's a way of
to:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of Jack J. Woehr
Sent: Sunday, April 8, 2018 2:59 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?
On 4/8/2018 12:09 PM, Charles Mills wrote:
> Believe it or not, it appears to be a bug in the C++ runtime. Anyone
&g
On 4/8/2018 12:09 PM, Charles Mills wrote:
Believe it or not, it appears to be a bug in the C++ runtime. Anyone who
wants to prove me wrong is welcome to try the below. I have tested only on
z/OS V2R2.
No convenient access, but let me guess: blows up in the delete?
Got an error message?
--
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Charles Mills
Sent: Friday, April 6, 2018 6:00 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Any C++ regex template class gotchas?
X-posted to IBM-MAIN and MVS-OE. (The latter seems more appropriate
X-posted to IBM-MAIN and MVS-OE. (The latter seems more appropriate but the
former has more traffic by far.)
I'm trying to use the C++ template class regex for the first time. I have
code that works without any hint of an error on Windows but I am getting a
S0C4 on z/OS when the destructor calls
26 matches
Mail list logo