[LLVMbugs] [Bug 18793] New: crash on parenthesized non-type template argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Feb 10 11:34:05 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18793
Bug ID: 18793
Summary: crash on parenthesized non-type template argument
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This causes clang to assert in the parser:
template<typename T, T> struct S {};
template<typename T> int g(S<T, (T())> *);
Note that the parentheses around 'T()' are necessary here to avoid it being
parsed as a function type.
--
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/20140210/6747d81a/attachment.html>
More information about the llvm-bugs
mailing list