[LLVMbugs] [Bug 19304] New: Variable template confuses name lookup
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 1 17:18:23 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19304
Bug ID: 19304
Summary: Variable template confuses name lookup
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++1y
Assignee: unassignedclangbugs at nondot.org
Reporter: tommitissari at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
template <typename T>
struct Foo;
template <typename T>
constexpr int bar = Foo<T>::bar;
template <>
struct Foo<char> {
static constexpr int bar = 222; // Error [1]
};
[1] Redefinition of 'bar' as different kind of symbol
--
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/20140402/3b674cfe/attachment.html>
More information about the llvm-bugs
mailing list