https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67702

            Bug ID: 67702
           Summary: Internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.ok8 at gmail dot com
  Target Milestone: ---

Created attachment 36383
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36383&action=edit
Compilation failing with C++ template code.

Hello gcc team,

g++-4.9.2 fails to compile the attached source code. g++-5.1 also fails to
compile it as well.

Compilation command was: "g++ -std=c++11 test_gcc_4_9_2.cpp"

I don't have this problem with clang and MSVC compilers. I haven't found a
workaround so far for this error, could you please advise?


Below is the following compilation log:

test_gcc_4_9_2.cpp: In instantiation of ‘typename Filter<T>::return_type
Image<T>::compute(const typename Filter<T>::parameter_type&) [with Filter =
Blur; T = double; typename Filter<T>::return_type = Image<double>; typename
Filter<T>::parameter_type = double]’:
test_gcc_4_9_2.cpp:45:47:   required from here
test_gcc_4_9_2.cpp:11:35: internal compiler error: Segmentation fault
   typename Filter<T>::return_type compute(const typename
Filter<T>::parameter_type& param)
                                   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccpCK2W4.out file, please attach this to
your bugreport.


Best,
David.

Reply via email to