[Bug c++/59504] New: "Internal compiler error: segmentation fault" in GCC 4.8.1 with -fprofile-use

2013-12-13 Thread chbaker0 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59504

Bug ID: 59504
   Summary: "Internal compiler error: segmentation fault" in GCC
4.8.1 with -fprofile-use
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: chbaker0 at gmail dot com

Created attachment 31430
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31430&action=edit
Sources and -fprofile-generate output files

GCC 4.8.1 crashes upon attempting to compile C++11 code with -fprofile-use and
any optimization level, -O and higher. Logs:

x86_64-w64-mingw32-g++.exe -std=c++11 -Wall  -O  -fprofile-use   
-IC:\Development\Libraries\glew-1.10.0\include
-IC:\Development\Libraries\glfw-x86-64\include -IC:\Development\Libraries\glm
-IC:\Development\Libraries\glsdk_0_5_2\glutil\include  -c
C:\Development\Projects\OpenGL\Practice\Includes.h -o Includes.h.gch
x86_64-w64-mingw32-g++.exe -std=c++11 -Wall  -O  -fprofile-use   
-IC:\Development\Libraries\glew-1.10.0\include
-IC:\Development\Libraries\glfw-x86-64\include -IC:\Development\Libraries\glm
-IC:\Development\Libraries\glsdk_0_5_2\glutil\include  -c
C:\Development\Projects\OpenGL\Practice\main.cpp -o obj\Release\main.o
C:\Development\Projects\OpenGL\Practice\main.cpp: In static member function
'static void
std::_Function_base::_Base_manager<_Functor>::_M_destroy(std::_Any_data&,
std::false_type) [with _Functor =
std::function)>; std::false_type =
std::integral_constant]':
C:\Development\Projects\OpenGL\Practice\main.cpp:213:1: internal compiler
error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.


[Bug c++/59504] "Internal compiler error: segmentation fault" in GCC 4.8.1 with -fprofile-use

2013-12-13 Thread chbaker0 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59504

Collin Baker  changed:

   What|Removed |Added

 CC||chbaker0 at gmail dot com

--- Comment #1 from Collin Baker  ---
Same code builds fine with -O and higher and without -fprofile-use, or with
-fprofile-use and without -O or higher