Closed tomilov closed 1 year ago
Debug output:
Stack dump:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.8: note: diagnostic msg: /tmp/parser-fbcca9.cpp make[1]: Leaving directory `/home/user/insituc/src/tst/parser' clang-3.8: note: diagnostic msg: /tmp/parser-fbcca9.sh clang-3.8: note: diagnostic msg:
Appears to be fixed in Clang 9: https://godbolt.org/z/Y6n8od8b3 Reduced by C-Reduce:
struct Trans_NS_versatile_variant {
template < typename >
using index = int>
}
struct variant {
using variant_type = Trans_NS_versatile_variant ;
using size_type = variant_type:template < typename variant_type, typename >
constexpr size_type index = variant_type::variant_type::index<>;
namespace ast {
struct empty
struct statement : variant
int empty{index< statement, ast:empty >
Extended Description
Crash caused by missing typename keyword before and {} or () or ::value after mentioning of a alias template in a definition of a variable template.