Public bug reported:

*** 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;

** Affects: gcc-10 (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  declaration of included invalid class template cause crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to