declaration of included invalid class template cause crash
Bug #1900145 reported by
Amir Maimon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-10 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
*** system details ***
Ubuntu 20.04.1 LTS
g++-10 (Ubuntu 10.2.0-
*** compilation line ***
g++-10 -std=c++20 internal_repro.cpp
*** output ***
internal_
4 | A<T> a;
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
*** code ***
internal_repro.h:
template <undeclared_concept T>
class A{};
internal_repro.cpp:
#include "internal_repro.h"
template <typename T>
A<T> a;
To post a comment you must log in.
compilation line that created the attached files include "-save-temps"
g++-10 -std=c++20 internal_repro.cpp -save-temps