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

            Bug ID: 86960
           Summary: [Regression] internal compiler error: in
                    coerce_template_parms
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v.reshetnikov at gmail dot com
  Target Milestone: ---

/****************** BEGIN SOURCE ******************/
template<class... T>
struct Outer {
    template<T... x>
    struct Inner;
};

template<>
template<bool x>
struct Outer<bool>::Inner { 
    static constexpr bool value = x;
};

static_assert(Outer<bool>::Inner<true>::value); /* internal compiler error: in
coerce_template_parms, at cp/pt.c:8533 */

/******************* END SOURCE *******************/

Fails in GCC 8.1 and 8.2, compiles successfully with 7.3.

Might be related to Bug 86918, Bug 86920, Bug 86956, Bug 86958.

Reply via email to