This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61286] New: internal compiler error -fcilkplus


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

            Bug ID: 61286
           Summary: internal compiler error -fcilkplus
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tau at eidos dot ic.i.u-tokyo.ac.jp

Hi, I encountered an internal compiler error with
the following C++ + Cilkplus code. (the code is
almost meaningless, but it should compile; it was
the result of reducing code down to the minimum
while producing the bug).

------------------------------------------------
template <class T>
class ext
{
  virtual int fox(int x) {
    x = _Cilk_spawn fox(0);
  }
};

void bar() {
  ext<int> ex;
}
------------------------------------------------

Here is the command line log. 
Thanks!

$ g++ -v -c -fcilkplus a.i
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/home/tau/parallel2/sys/inst/g/gcc
--with-gmp=/home/tau/parallel2/sys/inst/g
--with-mpfr=/home/tau/parallel2/sys/inst/g
--with-mpc=/home/tau/parallel2/sys/inst/g
--with-isl=/home/tau/parallel2/sys/inst/g
--with-cloog=/home/tau/parallel2/sys/inst/g
--with-stage1-ldflags=-Wl,-R/home/tau/parallel2/sys/inst/g/lib
--with-boot-ldflags=-Wl,-R/home/tau/parallel2/sys/inst/g/lib
--enable-languages=c,c++
Thread model: posix
gcc version 4.9.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-c' '-fcilkplus' '-shared-libgcc' '-mtune=generic'
'-march=x86-64' '-pthread'

/home/tau/parallel2/sys/inst/g/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus
-fpreprocessed a.i -quiet -dumpbase a.i -mtune=generic -march=x86-64 -auxbase a
-version -fcilkplus -o /tmp/ccJCvljA.s
GNU C++ (GCC) version 4.9.0 (x86_64-unknown-linux-gnu)
    compiled by GNU C version 4.9.0, GMP version 4.3.2, MPFR version 3.1.2, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.9.0 (x86_64-unknown-linux-gnu)
    compiled by GNU C version 4.9.0, GMP version 4.3.2, MPFR version 3.1.2, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bd6460f1d935558de30f603a58e496f6
a.cc: In instantiation of âint ext<T>::fox(int) [with T = int]â:
a.cc:11:1:   required from here
a.cc:5:7: internal compiler error: Segmentation fault
     x = _Cilk_spawn fox(0);
       ^
0x95173f crash_signal
    ../.././gcc/toplev.c:337
0x5df640 cp_build_modify_expr(tree_node*, tree_code, tree_node*, int)
    ../.././gcc/cp/typeck.c:7446
0x564217 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../.././gcc/cp/pt.c:14495
0x56902f tsubst_expr
    ../.././gcc/cp/pt.c:13988
0x5680df tsubst_expr
    ../.././gcc/cp/pt.c:13404
0x568ffd tsubst_expr
    ../.././gcc/cp/pt.c:13595
0x567d32 instantiate_decl(tree_node*, int, bool)
    ../.././gcc/cp/pt.c:19884
0x57e6cb instantiate_pending_templates(int)
    ../.././gcc/cp/pt.c:20000
0x596ebf cp_write_global_declarations()
    ../.././gcc/cp/decl2.c:4312
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]