<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>35089</bug_id>
          
          <creation_ts>2018-06-26 16:22:20 +0300</creation_ts>
          <short_desc>gcc7: internal compiler error: unexpected expression ‘I’ of kind template_parm_index -- fixed upstream</short_desc>
          <delta_ts>2018-07-14 03:01:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gcc7</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Nakonechnyi">zorg1331</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>172172</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Nakonechnyi">zorg1331</who>
    <bug_when>2018-06-26 16:22:20 +0300</bug_when>
    <thetext>В багзилле Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892719 данный баг закрыт с указанием фикса.

У меня воспроизвелось при попытки собрать проект https://github.com/avast-tl/yaramod, вывод компилятора для этого случая ниже. С gcc6 проблемы не наблюдается.

In file included from /tmp/yaramod/include/yaramod/utils/visitor_result.h:11:0,
                 from /tmp/yaramod/include/yaramod/types/expression.h:14,
                 from /tmp/yaramod/include/yaramod/builder/yara_expression_builder.h:12,
                 from /tmp/yaramod/src/builder/yara_expression_builder.cpp:7:
/tmp/yaramod/deps/variant/variant.hpp: In substitution of ‘template&lt;long unsigned int I, class ... Ts&gt; using type_pack_element_t = typename mpark::lib::type_pack_element_impl::type::type [with long unsigned int I = I; Ts = {std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction}]’:
/tmp/yaramod/deps/variant/variant.hpp:1900:9:   required by substitution of ‘template&lt;class Arg, class Decayed, typename std::enable_if&lt;(! std::is_same&lt;Decayed, mpark::variant&lt;std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction&gt; &gt;::value), int&gt;::type &lt;anonymous&gt;, typename std::enable_if&lt;(! mpark::detail::is_in_place_index&lt;Decayed&gt;::value), int&gt;::type &lt;anonymous&gt;, typename std::enable_if&lt;(! mpark::detail::is_in_place_type&lt;Decayed&gt;::value), int&gt;::type &lt;anonymous&gt;, long unsigned int I, class T, typename std::enable_if&lt;std::is_constructible&lt;T, Arg&gt;::value, int&gt;::type &lt;anonymous&gt; &gt; constexpr mpark::variant&lt;std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction&gt;::variant(Arg&amp;&amp;) [with Arg = mpark::variant&lt;std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction&gt;; Decayed = mpark::variant&lt;std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction&gt;; typename std::enable_if&lt;(! std::is_same&lt;Decayed, mpark::variant&lt;std::shared_ptr&lt;yaramod::Expression&gt;, yaramod::VisitAction&gt; &gt;::value), int&gt;::type &lt;anonymous&gt; = &lt;missing&gt;; typename std::enable_if&lt;(! mpark::detail::is_in_place_index&lt;Decayed&gt;::value), int&gt;::type &lt;anonymous&gt; = &lt;missing&gt;; typename std::enable_if&lt;(! mpark::detail::is_in_place_type&lt;Decayed&gt;::value), int&gt;::type &lt;anonymous&gt; = &lt;missing&gt;; long unsigned int I = &lt;missing&gt;; T = &lt;missing&gt;; typename std::enable_if&lt;std::is_constructible&lt;T, Arg&gt;::value, int&gt;::type &lt;anonymous&gt; = &lt;missing&gt;]’
/tmp/yaramod/include/yaramod/types/expressions.h:35:23:   required from here
/tmp/yaramod/deps/variant/variant.hpp:1900:9: internal compiler error: unexpected expression ‘I’ of kind template_parm_index
         typename T = lib::type_pack_element_t&lt;I, Ts...&gt;,
         ^~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;http://bugzilla.altlinux.org&gt; for instructions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172640</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2018-07-14 03:01:04 +0300</bug_when>
    <thetext>gcc7-7.3.1-alt5 -&gt; sisyphus:

Fri Jul 13 2018 Dmitry V. Levin &lt;ldv@altlinux&gt; 7.3.1-alt5
- Updated to redhat/gcc-7-branch r262599 (closes: #35089).
- Synced with Fedora gcc 7.3.1-6.
- Moved documentation for Fortran, Ada, and Go compilers from gcc7-doc
  to gcc7-fortran-doc, gcc7-gnat-doc, and gcc7-go-doc subpackages.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>