[LLVMbugs] [Bug 18009] New: clang crashes when using integral non-type template-parameter in nested template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 20 14:23:03 PST 2013
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: unassignedclangbugs at nondot.org
Reporter: yzhwang at ucdavis.edu
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131120/72bd86d3/attachment.html>
More information about the llvm-bugs
mailing list