Including "Vc" header causes ICE

Bug #1556217 reported by Iain Lane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ apt install vc-dev
(xenial-amd64)root@xenial:/# echo "#include <Vc/Vc>" | g++ -x c++ -
In file included from /usr/include/Vc/Memory:32:0,
                 from /usr/include/Vc/IO:24,
                 from /usr/include/Vc/Vc:23,
                 from <stdin>:1:
/usr/include/Vc/sse/interleavedmemory.tcc: In substitution of 'template<class S1, class IT1, class IT2> void Vc::SSE::Vector<T>::gather(const S1*, const EntryType* const S1::*, IT1, IT2, Vc::SSE::Vector<T>::MaskArg) [with S1 = <missing>; IT1 = <missing>; IT2 = <missing>]':
/usr/include/Vc/sse/interleavedmemory.tcc:362:39: required from here
/usr/include/Vc/sse/interleavedmemory.tcc:362:39: internal compiler error: in strip_typedefs, at cp/tree.c:1377
     v4.gather(m_data, m_indexes + I(4));
                                       ^
0x60ca6d strip_typedefs(tree_node*)
 ../../src/gcc/cp/tree.c:1377
0xd178af canonicalize_type_argument
 ../../src/gcc/cp/pt.c:6574
0xd178af unify
 ../../src/gcc/cp/pt.c:18363
0xd175df unify
 ../../src/gcc/cp/pt.c:18490
0xd1f5eb unify_one_argument
 ../../src/gcc/cp/pt.c:17001
0xd1eccd type_unification_real
 ../../src/gcc/cp/pt.c:17072
0xd1e3bf fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool)
 ../../src/gcc/cp/pt.c:16508
0xce877e add_template_candidate_real
 ../../src/gcc/cp/call.c:3069
0xce0288 add_template_candidate
 ../../src/gcc/cp/call.c:3166
0xce0288 add_candidates
 ../../src/gcc/cp/call.c:5297
0xce3cc3 build_new_method_call_1
 ../../src/gcc/cp/call.c:8133
0xce3cc3 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int)
 ../../src/gcc/cp/call.c:8329
0xd52ef2 cp_parser_postfix_expression
 ../../src/gcc/cp/parser.c:6347
0xd5202d cp_parser_unary_expression
 ../../src/gcc/cp/parser.c:7439
0xd5176b cp_parser_binary_expression
 ../../src/gcc/cp/parser.c:8173
0xd512e6 cp_parser_assignment_expression
 ../../src/gcc/cp/parser.c:8431
0xd543f1 cp_parser_expression
 ../../src/gcc/cp/parser.c:8585
0xd5641d cp_parser_expression_statement
 ../../src/gcc/cp/parser.c:9992
0xd55997 cp_parser_statement
 ../../src/gcc/cp/parser.c:9843
0xd556a4 cp_parser_statement_seq_opt
 ../../src/gcc/cp/parser.c:10115
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.

Happens with 5.3.1-10ubuntu2 or 5.3.1-11 from Debian (installed on a Xenial system as vc-dev isn't available on Debian)

This is making calligra FTBFS, so I will probably temporarily disable vc there.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: g++-5 5.3.1-10ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-11.26-generic 4.4.4
Uname: Linux 4.4.0-11-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 11 17:49:06 2016
InstallationDate: Installed on 2012-10-07 (1251 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121007)
SourcePackage: gcc-5
UpgradeStatus: Upgraded to xenial on 2013-05-07 (1039 days ago)

Revision history for this message
Iain Lane (laney) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-5 - 5.3.1-12ubuntu1

---------------
gcc-5 (5.3.1-12ubuntu1) xenial; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-5 (5.3.1-12) unstable; urgency=medium

  * Update to SVN 20160315 (r234249, 5.3.1) from the gcc-5-branch.
    - Fix PR tree-optimization/69666, PR middle-end/69920, PR c++/67364,
      PR rtl-optimization/69195, PR rtl-optimization/47992,
      PR rtl-optimization/69941, PR target/70131 (rs6000).
  * When configured to link with --as-needed by default, always link the
    sanitizer libraries with --no-as-needed.
  * Fix PR c++/70209, taken from the trunk. LP: #1556217.
  * Stop providing alternative for /usr/bin/go. (Michael Hudson-Doyle).
    LP: #1555856.
  * Disable gnat on powerpcspe. Closes: #816051.
  * Apply proposed patch for PR c++/70218 (illegal access to private field
    succeeds). Closes: #70218.

 -- Matthias Klose <email address hidden> Thu, 17 Mar 2016 09:40:59 +0100

Changed in gcc-5 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.