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: unassignedclangb...@nondot.org
          Reporter: zhong...@pku.org.cn
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to