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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-24
                 CC|                            |trippels at gcc dot gnu.org
            Summary|Internal compiler error:    |[4.9/5/6 Regression]
                   |Segmentation fault          |Internal compiler error:
                   |                            |Segmentation fault
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat test_gcc.ii
template <typename> class Image {
public:
  template <template <typename> class Filter>
  void compute(typename Filter<int>::parameter_type) {}
};

template <typename> class Blur {
public:
  using parameter_type = int;
};

int main() { Image<int>{}.compute<Blur>(0); }

markus@x4 tmp % g++ -std=c++11 test_gcc.ii
test_gcc.ii: In instantiation of ‘void Image< <template-parameter-1-1>
>::compute(typename Filter<int>::parameter_type) [with Filter = Blur;
<template-parameter-1-1> = int]’:

test_gcc.ii:4:8: internal compiler error: Segmentation fault
   void compute(typename Filter<int>::parameter_type) {}
        ^
0xc7f50f crash_signal
        ../../gcc/gcc/toplev.c:353
0x7fb22b29370f ???
        /var/tmp/glibc/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7ac17e write_template_prefix
        ../../gcc/gcc/cp/mangle.c:1157
0x7abce7 write_prefix
        ../../gcc/gcc/cp/mangle.c:1072
0x7ac645 write_nested_name
        ../../gcc/gcc/cp/mangle.c:1003
0x7a8457 write_type
        ../../gcc/gcc/cp/mangle.c:2015
0x7aa6a4 write_method_parms
        ../../gcc/gcc/cp/mangle.c:2599
0x7aaa50 write_bare_function_type
        ../../gcc/gcc/cp/mangle.c:2541
0x7acca9 mangle_decl_string
        ../../gcc/gcc/cp/mangle.c:3508
0x7acf09 get_mangled_id
        ../../gcc/gcc/cp/mangle.c:3530
0x7acf09 mangle_decl(tree_node*)
        ../../gcc/gcc/cp/mangle.c:3597
0xef60b0 decl_assembler_name(tree_node*)
        ../../gcc/gcc/tree.c:658
0x906c58 symtab_node::get_comdat_group_id()
        ../../gcc/gcc/cgraph.h:210
0x906c58 analyze_functions
        ../../gcc/gcc/cgraphunit.c:1041
0x90844c symbol_table::finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2540
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to