bloomberg / clang-p2996

Experimental clang support for WG21 P2996 (Reflection).
https://github.com/bloomberg/clang-p2996/tree/p2996/P2996.md
51 stars 8 forks source link

Crash when instantiating template with template argument deduced to default value of global namespace #35

Closed katzdm closed 4 months ago

katzdm commented 4 months ago

The following seemingly extremely niche corner case produces a crash:

template <auto R = ^::> class S {};
S s;