Monday, December 25, 2023

Digest for comp.lang.c++@googlegroups.com - 1 update in 1 topic

jak <nospam@please.ty>: Dec 25 11:03PM +0100

Jivanmukta ha scritto:
>         cout << "after if with regex_search"; // NOT ACHIEVED
>         return EXIT_SUCCESS;
> }
 
Hi,
On Linux your code runs fine and ends with this output:
 
before regex_search; line len: 22109, regexp1 len: 110, regexp1:
(static|private|protected|public)?\s*(readonly)?\s*([_a-zA-Z0-9]+)?\s*(\$([a-zA-Z_][a-zA-Z0-9_]*)\s*=.*,?\s*)+after
regex_searchafter if with regex_search==95920==
 
I checked it with Valgrind and it didn't even find any problems.
 
I also tried it on the Windows machine (10) with the Cygwin environment
and, unfortunately, I had the same problem as you:
 
$ ./test
Segmentation fault (core dumped)
$ gcc -v
gcc version 11.4.0 (GCC)
 
completed in the debug version and ran under GDB it gives the
following error message:
 
Thread 1 "test" received signal SIGSEGV, Segmentation fault.
0x00000003fee97f33 in cygstdc++-
6!_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastElNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE
() from /usr/bin/cygstdc++-6.dll
 
I hope this info are useful to you.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: