Skip to content

Instantly share code, notes, and snippets.

@yujincheng08
Created April 11, 2024 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yujincheng08/418bd6732f4be87fd24617e2f869883e to your computer and use it in GitHub Desktop.
Save yujincheng08/418bd6732f4be87fd24617e2f869883e to your computer and use it in GitHub Desktop.
Clang frontend crash
module;
#include "h.hpp"
export module bar;
namespace N {
export class Z {
};
}
cmake_minimum_required(VERSION 3.28)
project(test CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_SCAN_FOR_MODULES ON)
add_library(test SHARED foo.cc)
target_sources(test
PRIVATE
FILE_SET CXX_MODULES FILES
bar.cxx
)
#include "h.hpp"
import bar;
void y() {
N::Y<int> java_dex_file{};
};
#pragma once
namespace N {
template<typename T>
concept X = true;
template<X T>
class Y {
public:
Y() {
}
template<X U>
friend class Y;
private:
};
inline Y<int> x() {
return {};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment