[LLVMbugs] [Bug 16908] New: Rejects-valid with enum and dependent name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 15 21:40:21 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16908
Bug ID: 16908
Summary: Rejects-valid with enum and dependent name
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
template<typename> struct S { };
template<typename T> struct S2 {
template<typename U> enum S<T>::template SS<U>::E foo();
};
<stdin>:5:44: error: 'SS' following the 'template' keyword does not refer to a
template
template<typename U> enum S<T>::template SS<U>::E foo();
~~~~~~~~ ^~
<stdin>:5:46: error: expected member name or ';' after declaration specifiers
template<typename U> enum S<T>::template SS<U>::E foo();
~~~~ ^
2 errors generated.
This is well-formed as far as I can tell: we shouldn't be trying to perform
name lookup into S.
--
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/20130816/48e12e5c/attachment.html>
More information about the llvm-bugs
mailing list