[llvm-bugs] [Bug 37821] New: A recurring bug?
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 16 18:14:25 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37821
Bug ID: 37821
Summary: A recurring bug?
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: zhonghao at pku.org.cn
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
A previous bug report (https://bugs.llvm.org/show_bug.cgi?id=7708) says that
clang++ shall not compile the following code:
template<typename T>
struct Const { typedef void type; };
template<typename T>
void f(T, typename Const<T>::type*) { } // T1
template<typename T>
void f(T, void *) { } // T2
int main() { void *p = 0; f(0, p); }
// snap
I tried the latest version of clang++ and g++. g++ produces errors when
compiling the code, but clang++ still does not produce any errors.
Is this a recurring bug?
--
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/20180617/5d9bdc00/attachment.html>
More information about the llvm-bugs
mailing list