[LLVMbugs] [Bug 16926] New: crash on missing typename on dependent name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 17 06:35:38 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16926
Bug ID: 16926
Summary: crash on missing typename on dependent name
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: 4c37f23e53a3 at 7db1b5ea0a98.anonbox.net
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
the invalid code
template <typename T>
struct A{
template <typename U>
struct B{};
};
template <typename T>
struct A2{
template <typename U>
struct B2{
typedef /*typename*/ A<T>::template B<U> foo;
foo bar;
};
};
int main(){
A2<int>::B2<int> bang;
return 0;
}
crashes on
clang version 3.3 (tags/RELEASE_33/rc3)
Target: x86_64-redhat-linux-gnu
Thread model: posix
instead of complaining about the missing typename. This happens at
instantiation time, a "A2<int>::B2<int>* bang=0;" works.
--
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/20130817/911a06f7/attachment.html>
More information about the llvm-bugs
mailing list