[Bug 1900145] Re: declaration of included invalid class template cause crash

Amir Maimon 1900145 at bugs.launchpad.net
Fri Oct 16 14:03:17 UTC 2020


** Attachment added: "internal_repro.ii"
   https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1900145/+attachment/5423008/+files/internal_repro.ii

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

Title:
  declaration of included invalid class template cause crash

Status in gcc-10 package in Ubuntu:
  New

Bug description:
  *** system details ***

  Ubuntu 20.04.1 LTS
  g++-10 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0

  *** compilation line ***
  g++-10 -std=c++20 internal_repro.cpp

  *** output ***

  internal_repro.cpp:4:4: internal compiler error: in coerce_template_parms, at cp/pt.c:8971
      4 | A<T> a;
        |    ^
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.

  *** code ***

  internal_repro.h:

  template <undeclared_concept T>
  class A{};

  internal_repro.cpp:

  #include "internal_repro.h"
  template <typename T>
  A<T> a;

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



More information about the foundations-bugs mailing list