[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
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hedayat.fwd at gmail dot com Target Milestone: --- When compiling https://github.com/hedayat/powerfake with GCC 11.2.1 with default settings, which us

[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
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hedayat.fwd at gmail dot com Target Milestone: --- Currently, there is no method to generate mangled symbol as an string or as a symbol. A mangled symbol as string

[Bug libstdc++/85965] [8/9/10 Regression] G++ gives cryptic error instead of incomplete type

2019-05-15 Thread hedayat.fwd at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85965 --- Comment #15 from Hedayat Vatankhah --- Thanks! Yep, I'm certainly not a C++ standard expert.

[Bug libstdc++/85965] [8 Regression] G++ gives cryptic error instead of incomplete type

2019-05-15 Thread hedayat.fwd at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85965 --- Comment #12 from Hedayat Vatankhah --- OK, I found the problem. Yes, the fix is included in 9.1.1. However, the fix assumes that the type must be complete when desctructor is called, but unfortunately, this is a wrong assumption. AFAIK, this

[Bug libstdc++/85965] [8 Regression] G++ gives cryptic error instead of incomplete type

2019-05-14 Thread hedayat.fwd at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85965 --- Comment #10 from Hedayat Vatankhah --- Isn't it expected to be fixed in Gcc 9.1.1? It seems to still affect GCC 9.1.1 (Fedora 30)

[Bug c++/85965] G++ gives cryptic error instead of incomplete type

2019-03-19 Thread hedayat.fwd at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85965 Hedayat Vatankhah changed: What|Removed |Added CC||hedayat.fwd at gmail dot com

[Bug c++/68213] New: Exception handling corrupts a VLA in MinGW

2015-11-04 Thread hedayat.fwd at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: hedayat.fwd at gmail dot com Target Milestone: --- Code: - #include #include #include #include using namespace std; int main(int argc, char **argv