Created
April 11, 2024 15:13
-
-
Save yujincheng08/418bd6732f4be87fd24617e2f869883e to your computer and use it in GitHub Desktop.
Clang frontend crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module; | |
#include "h.hpp" | |
export module bar; | |
namespace N { | |
export class Z { | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "h.hpp" | |
import bar; | |
void y() { | |
N::Y<int> java_dex_file{}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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