[Bug 1509358] Re: gcc-5.1 segfaulting for compilation

Matthias Klose doko at ubuntu.com
Mon Nov 30 06:54:56 UTC 2015


I can't see this with 5.2.1-27ubuntu1 in xenial

** Changed in: gcc-5 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1509358

Title:
  gcc-5.1 segfaulting for compilation

Status in gcc-5 package in Ubuntu:
  Fix Released

Bug description:
  A minimal reproducible example ↓

           #include <vector>

           struct StateNegotiating {};

  	 struct Negotiating{
  	  StateNegotiating State;

           };

  	 struct Connection {
  	  std::vector<StateNegotiating> State;
  	 };

  	 struct ConnectionList {
  	  ConnectionList(Connection v);
  	 };

  	 struct Ctrld{
  	  Negotiating syncpr;
  	  bool ExecuteCmds(){
  	   ConnectionList con = {{{{syncpr.State}}}};
  	  }
  	 };

  The command with output is ↓

  	 $ g++-5 test.cpp -std=c++1y -c -o a.o
  	 test.cpp: In member function ‘bool Ctrld::ExecuteCmds()’:
  	 test.cpp:21:43: internal compiler error: Segmentation fault
  	    ConnectionList con = {{{{syncpr.State}}}};
  	              ^
  	 0xab2edf crash_signal
  	   ../../src/gcc/toplev.c:383
  	 0x5ff3f9 build_aggr_conv
  	   ../../src/gcc/cp/call.c:954
  	 0x5ff3f9 implicit_conversion
  	   ../../src/gcc/cp/call.c:1864
  	 0x5ff5a9 build_list_conv
  	   ../../src/gcc/cp/call.c:837
  	 0x5ff5a9 implicit_conversion
  	   ../../src/gcc/cp/call.c:1815
  	 0x600614 add_function_candidate
  	   ../../src/gcc/cp/call.c:2114
  	 0x60123f add_candidates
  	   ../../src/gcc/cp/call.c:5295
  	 0x601427 add_list_candidates
  	   ../../src/gcc/cp/call.c:3558
  	 0x5fef46 build_user_type_conversion_1
  	   ../../src/gcc/cp/call.c:3655
  	 0x5ff1f6 implicit_conversion
  	   ../../src/gcc/cp/call.c:1866
  	 0x6049a6 can_convert_arg(tree_node*, tree_node*, tree_node*, int, int)
  	   ../../src/gcc/cp/call.c:9339
  	 0x5ff12f build_aggr_conv
  	   ../../src/gcc/cp/call.c:945
  	 0x5ff12f implicit_conversion
  	   ../../src/gcc/cp/call.c:1864
  	 0x600614 add_function_candidate
  	   ../../src/gcc/cp/call.c:2114
  	 0x60123f add_candidates
  	   ../../src/gcc/cp/call.c:5295
  	 0x5fef46 build_user_type_conversion_1
  	   ../../src/gcc/cp/call.c:3655
  	 0x5ff1f6 implicit_conversion
  	   ../../src/gcc/cp/call.c:1866
  	 0x5fd188 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int)
  	   ../../src/gcc/cp/call.c:9392
  	 0x6b32c0 ocp_convert(tree_node*, tree_node*, int, int, int)
  	   ../../src/gcc/cp/cvt.c:869
  	 0x6bae95 expand_default_init
  	   ../../src/gcc/cp/init.c:1661
  	 Please submit a full bug report,
  	 with preprocessed source if appropriate.
  	 Please include the complete backtrace with any bug report.
  	 See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

  The version is: g++-5 (Ubuntu 5.1.0-0ubuntu11~14.04.1) 5.1.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1509358/+subscriptions



More information about the foundations-bugs mailing list