[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-04 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 --- Comment #7 from Hedayat Vatankhah --- An interesting part of the problem is that following calls: sc2.CallSamplePrivate(); sc2.CallOverloadedPrivate(4); sc2.CallOverloadedPrivate(4.0f); both before and after using MakeFake<>() c

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-04 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 Hedayat Vatankhah changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-04 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 --- Comment #5 from Hedayat Vatankhah --- Oops, maybe I'm wrong. I forgot that I've also wrapped SampleClass::SamplePrivate, so let me investigate further. Sorry for the inconvenience.

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-04 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 --- Comment #4 from Hedayat Vatankhah --- Well, sorry if I should gave more logs to make it more clear. Note that the crash happens here: https://github.com/hedayat/powerfake/blob/a4c80d6628816656796d2e85b4422218da05ce00/powerfake.h#L257 And t

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-03 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 --- Comment #2 from Hedayat Vatankhah --- With these options, the code runs a bit more but still crashes. The output of each option is given below: Output with -fsanitize=undefined: /home/hedayat/Projects/powerfake/powerfake.h:257:40: runtime e

[Bug c++/103537] New: Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-03 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 Bug ID: 103537 Summary: Using -fstack-protector-strong "without" optimization cause segmentation fault Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severit

[Bug c++/101010] Feature request: add builtins to provide mangled symbols, optionally with a prefix

2021-06-10 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101010 --- Comment #2 from Hedayat Vatankhah --- (In reply to Martin Sebor from comment #1) > Does the type_info::name() string match what you're looking for? No, not at all. Looks like I've not clearly described my intent. First of all, type_info::

[Bug c++/101010] New: Feature request: add builtins to provide mangled symbols, optionally with a prefix

2021-06-10 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101010 Bug ID: 101010 Summary: Feature request: add builtins to provide mangled symbols, optionally with a prefix Product: gcc Version: 11.1.1 Status: UNCONFIRMED Sev