http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56767
Bug #: 56767
Summary: gcc does not generate correct code with -O2
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jupitercuso4 at gmail dot com
Target Milestone: ---
Applied patch from PR60871 but it still fails:
$ gcc -v
COLLECT_GCC=gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82067
--- Comment #3 from jupitercuso4 at gmail dot com ---
Created attachment 42101
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42101&action=edit
Preprocessed source that triggers the internal error.
Preprocessed source attached. Com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82067
--- Comment #5 from jupitercuso4 at gmail dot com ---
$ g++ -std=c++11 -O3 --save-temps test.i
test.cpp: In constructor
'xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_core::sc_module_name, const
xtsc_component::xtsc_queue_pin_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82067
--- Comment #7 from jupitercuso4 at gmail dot com ---
$ g++ -std=c++11 -O3 --verbose test.i
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/project/usr-tensilica-RHEL5/stools-8.0-2017-06-05/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4