http://llvm.org/bugs/show_bug.cgi?id=18009
Bug ID: 18009
Summary: clang crashes when using integral non-type
template-parameter in nested template
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Using clang to compile the following code which is valid C++ code:
template<int A> struct outer {
template<int B, int C> struct inner {};
template<int C> struct inner<A * 2, C> {};
};
the following error message will show up:
t.cpp:7:34: error: non-type template argument depends on a template parameter
of
the partial specialization
template<int C> struct inner<A*2, C> {};
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs