Hi!
the following causes clang to crash:
mods/test.mpp:
export module test;
export namespace test {
template<class T>
struct type {
consteval -> namespace(test) fragment namespace {};
};
}
main.cpp:
import test;
int main() {
auto x = test::type<int>{};
}
how to compile:
clang++ -fprebuilt-module-path=./mods/ -freflection -std=c++2a -x c++ -c mods/test.mpp -Xclang -emit-module-interface -o mods/test.pcm
clang++ -fprebuilt-module-path=./mods/ -freflection -std=c++2a -c main.cpp -o main.o
I believe the issue is caused here:
|
// FIXME: The point of instantiation is probably wrong. |
Hi!
the following causes clang to crash:
mods/test.mpp:
main.cpp:
how to compile:
I believe the issue is caused here:
meta/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
Line 1245 in 6632fc0